Qt,Qt5,Qt6: Fixed double OnSelectItem signal when setting ItemIndex of TListView vsReport. issue #40255

This commit is contained in:
Željan Rikalo 2023-05-11 19:48:50 +02:00
parent 1ddbcea70c
commit 9a68ad98cc
3 changed files with 6 additions and 0 deletions

View File

@ -1378,6 +1378,8 @@ begin
end else
begin
QtTreeWidget := TQtTreeWidget(ALV.Handle);
if QtTreeWidget.InUpdate then
exit; // issue #40255
TWI := QtTreeWidget.topLevelItem(AIndex);
QtTreeWidget.BeginUpdate;
case AState of

View File

@ -1414,6 +1414,8 @@ begin
end else
begin
QtTreeWidget := TQtTreeWidget(ALV.Handle);
if QtTreeWidget.InUpdate then
exit; // issue #40255
TWI := QtTreeWidget.topLevelItem(AIndex);
QtTreeWidget.BeginUpdate;
case AState of

View File

@ -1414,6 +1414,8 @@ begin
end else
begin
QtTreeWidget := TQtTreeWidget(ALV.Handle);
if QtTreeWidget.InUpdate then
exit; // issue #40255
TWI := QtTreeWidget.topLevelItem(AIndex);
QtTreeWidget.BeginUpdate;
case AState of