mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-13 16:19:28 +02:00
* Properly nest beginupdate/endupdate in doaddobject
This commit is contained in:
parent
dd26c1502c
commit
8139c0a8bd
@ -1946,16 +1946,14 @@ begin
|
|||||||
DupIgnore : Exit;
|
DupIgnore : Exit;
|
||||||
DupError : Error(SDuplicateString,0)
|
DupError : Error(SDuplicateString,0)
|
||||||
end;
|
end;
|
||||||
InsertItem (Result,S);
|
BeginUpdate;
|
||||||
if (aObject<>Nil) then
|
try
|
||||||
begin
|
InsertItem (Result,S);
|
||||||
BeginUpdate;
|
if (aObject<>Nil) then
|
||||||
try
|
|
||||||
Objects[Result]:=AObject;
|
Objects[Result]:=AObject;
|
||||||
finally
|
finally
|
||||||
EndUpdate;
|
EndUpdate;
|
||||||
end;
|
end;
|
||||||
end;
|
|
||||||
end;
|
end;
|
||||||
|
|
||||||
function TStringList.Add(const S: string): Integer;
|
function TStringList.Add(const S: string): Integer;
|
||||||
|
Loading…
Reference in New Issue
Block a user