mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-21 09:59:32 +02:00
IDE: close project: close editor file from right to left
git-svn-id: trunk@38937 -
This commit is contained in:
parent
7669ae8777
commit
5446aa1fac
@ -2106,7 +2106,9 @@ begin
|
||||
SourceEditorManager.IncUpdateLock;
|
||||
try
|
||||
while SourceEditorManager.SourceEditorCount > 0 do begin
|
||||
Result:=CloseEditorFile(SourceEditorManager.SourceEditors[0],[cfProjectClosing]);
|
||||
Result:=CloseEditorFile(
|
||||
SourceEditorManager.SourceEditors[SourceEditorManager.SourceEditorCount-1],
|
||||
[cfProjectClosing]);
|
||||
if Result=mrAbort then exit;
|
||||
end;
|
||||
finally
|
||||
@ -2114,6 +2116,7 @@ begin
|
||||
end;
|
||||
{$IFDEF IDE_MEM_CHECK}CheckHeapWrtMemCnt('TLazSourceFileManager.CloseProject B');{$ENDIF}
|
||||
IncreaseCompilerParseStamp;
|
||||
|
||||
// close Project
|
||||
if ProjInspector<>nil then
|
||||
ProjInspector.LazProject:=nil;
|
||||
|
Loading…
Reference in New Issue
Block a user