mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 09:59:45 +02:00
IDE: lock source-edits while reloading changed units
This commit is contained in:
parent
03bf02974e
commit
d604978e80
@ -8865,6 +8865,7 @@ begin
|
|||||||
APackageList:=nil;
|
APackageList:=nil;
|
||||||
AIgnoreList:=nil;
|
AIgnoreList:=nil;
|
||||||
LFMLoaded:=nil;
|
LFMLoaded:=nil;
|
||||||
|
SourceEditorManager.IncUpdateLock;
|
||||||
try
|
try
|
||||||
InvalidateFileStateCache;
|
InvalidateFileStateCache;
|
||||||
|
|
||||||
@ -8980,6 +8981,7 @@ begin
|
|||||||
|
|
||||||
Result:=mrOk;
|
Result:=mrOk;
|
||||||
finally
|
finally
|
||||||
|
SourceEditorManager.DecUpdateLock;
|
||||||
CheckFilesOnDiskEnabled:=True;
|
CheckFilesOnDiskEnabled:=True;
|
||||||
LFMLoaded.Free;
|
LFMLoaded.Free;
|
||||||
BufferList.Free;
|
BufferList.Free;
|
||||||
|
Loading…
Reference in New Issue
Block a user