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

This commit is contained in:
rich2014 2023-12-02 12:00:36 +08:00
parent c000fed74d
commit 16be083efc

View File

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