IDE: fixed saving what project was opened on IDE quit

git-svn-id: trunk@38761 -
This commit is contained in:
mattias 2012-09-20 09:00:50 +00:00
parent 2aa8d62f9f
commit b056f168e4
2 changed files with 2 additions and 2 deletions

View File

@ -7273,6 +7273,8 @@ end;
function TMainIDE.QuitIDE: boolean;
begin
Result:=true;
if Project1=nil then
EnvironmentOptions.LastSavedProjectFile:=RestoreProjectClosed;
MainIDEBar.OnCloseQuery(Self, Result);
{$IFDEF IDE_DEBUG}
writeln('TMainIDE.QuitIDE 1');

View File

@ -1906,8 +1906,6 @@ begin
FreeThenNil(Project1);
if IDEMessagesWindow<>nil then IDEMessagesWindow.Clear;
EnvironmentOptions.LastSavedProjectFile:=RestoreProjectClosed;
{$IFDEF IDE_MEM_CHECK}CheckHeapWrtMemCnt('TLazSourceFileManager.CloseProject C');{$ENDIF}
Result:=mrOk;
//writeln('TLazSourceFileManager.CloseProject end ',CodeToolBoss.ConsistencyCheck);