mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 20:36:09 +02:00
Qt: stop signals from qt when deleting an item from list. issue #19127
git-svn-id: trunk@30246 -
This commit is contained in:
parent
bbb20f8374
commit
a3d3512da0
@ -995,8 +995,13 @@ begin
|
||||
TQtListWidget(ALV.Handle).removeItem(AIndex)
|
||||
else
|
||||
begin
|
||||
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
||||
QtTreeWidget.DeleteItem(AIndex);
|
||||
TQtListWidget(ALV.Handle).BeginUpdate;
|
||||
try
|
||||
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
||||
QtTreeWidget.DeleteItem(AIndex);
|
||||
finally
|
||||
TQtListWidget(ALV.Handle).EndUpdate;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user