IDE: UPD #40616, apply ofDoNotActiveSourceEditor to TMainIDE.BeforeCodeToolBossApplyChanges()

This commit is contained in:
rich2014 2023-12-02 12:00:36 +08:00
parent 361e059ac5
commit 946c47ea3c

View File

@ -9897,7 +9897,7 @@ begin
continue;
//DebugLn(['TMainIDE.OnBeforeCodeToolBossApplyChanges i=',i,' ',CodeBUf.Filename]);
Flags:=[ofOnlyIfExists,ofDoNotLoadResource,ofRegularFile];
Flags:=[ofOnlyIfExists,ofDoNotLoadResource,ofRegularFile,ofDoNotActiveSourceEditor];
if CodeBuf.IsVirtual then
Include(Flags,ofVirtualFile);
if DoOpenEditorFile(Manager.SourceChangeCache.BuffersToModify[i].Filename,