mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-24 03:40:12 +02:00
Qt,Qt5,Qt6: Fixed double OnSelectItem signal when setting ItemIndex of TListView vsReport. issue #40255
This commit is contained in:
parent
1ddbcea70c
commit
9a68ad98cc
@ -1378,6 +1378,8 @@ begin
|
|||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
||||||
|
if QtTreeWidget.InUpdate then
|
||||||
|
exit; // issue #40255
|
||||||
TWI := QtTreeWidget.topLevelItem(AIndex);
|
TWI := QtTreeWidget.topLevelItem(AIndex);
|
||||||
QtTreeWidget.BeginUpdate;
|
QtTreeWidget.BeginUpdate;
|
||||||
case AState of
|
case AState of
|
||||||
|
@ -1414,6 +1414,8 @@ begin
|
|||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
||||||
|
if QtTreeWidget.InUpdate then
|
||||||
|
exit; // issue #40255
|
||||||
TWI := QtTreeWidget.topLevelItem(AIndex);
|
TWI := QtTreeWidget.topLevelItem(AIndex);
|
||||||
QtTreeWidget.BeginUpdate;
|
QtTreeWidget.BeginUpdate;
|
||||||
case AState of
|
case AState of
|
||||||
|
@ -1414,6 +1414,8 @@ begin
|
|||||||
end else
|
end else
|
||||||
begin
|
begin
|
||||||
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
||||||
|
if QtTreeWidget.InUpdate then
|
||||||
|
exit; // issue #40255
|
||||||
TWI := QtTreeWidget.topLevelItem(AIndex);
|
TWI := QtTreeWidget.topLevelItem(AIndex);
|
||||||
QtTreeWidget.BeginUpdate;
|
QtTreeWidget.BeginUpdate;
|
||||||
case AState of
|
case AState of
|
||||||
|
Loading…
Reference in New Issue
Block a user