Converter: Keep the main form of project open after conversion. Issue #25364.

git-svn-id: trunk@54339 -
This commit is contained in:
juha 2017-03-04 00:32:32 +00:00
parent 9f3aae8c8c
commit a86166fcfb

View File

@ -1793,7 +1793,8 @@ begin
if AnUnitInfo.OpenEditorInfoCount=0 then exit;
Result:=LazarusIDE.DoSaveEditorFile(AnUnitInfo.OpenEditorInfo[0].EditorComponent,
[sfCheckAmbiguousFiles,sfQuietUnitCheck]);
if not fSettings.KeepFileOpen then
// The main form has UnitIndex = 1. Don't close it.
if (UnitIndex<>1) and not fSettings.KeepFileOpen then
Result:=LazarusIDE.DoCloseEditorFile(AnUnitInfo.OpenEditorInfo[0].EditorComponent,
[cfQuiet]);
end;