mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-12 18:59:20 +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)
|
TQtListWidget(ALV.Handle).removeItem(AIndex)
|
||||||
else
|
else
|
||||||
begin
|
begin
|
||||||
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
TQtListWidget(ALV.Handle).BeginUpdate;
|
||||||
QtTreeWidget.DeleteItem(AIndex);
|
try
|
||||||
|
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
||||||
|
QtTreeWidget.DeleteItem(AIndex);
|
||||||
|
finally
|
||||||
|
TQtListWidget(ALV.Handle).EndUpdate;
|
||||||
|
end;
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user