IDE: call OnLoadSaveCustomData only if there is CustomData

This commit is contained in:
mattias 2022-04-11 13:47:27 +02:00
parent 59a8e8e6c9
commit 304aa2a528

View File

@ -2911,7 +2911,7 @@ procedure TProject.LoadCustomData(Sender: TObject; Data: TStringToStringTree;
XMLConfig: TXMLConfig; const Path: string);
begin
LoadStringToStringTree(XMLConfig,Data,Path);
if Assigned(OnLoadSafeCustomData) then
if Assigned(OnLoadSafeCustomData) and (Data.Count>0) then
OnLoadSafeCustomData(Sender,true,Data,fPathDelimChanged);
end;