mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-11 19:16:16 +02:00
Qt5,Qt6: fixed crash of TListView in design time. issue #40349
This commit is contained in:
parent
414a258750
commit
c1d775df54
@ -894,7 +894,8 @@ begin
|
||||
exit;
|
||||
|
||||
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
||||
if Assigned(QtTreeWidget) then
|
||||
if Assigned(QtTreeWidget) and
|
||||
not (csDesigning in ALV.ComponentState) then
|
||||
begin
|
||||
if ASortIndicator = siNone then
|
||||
QtTreeWidget.Header.SetSortIndicatorVisible(false)
|
||||
|
@ -892,7 +892,8 @@ begin
|
||||
exit;
|
||||
|
||||
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
||||
if Assigned(QtTreeWidget) then
|
||||
if Assigned(QtTreeWidget) and
|
||||
not (csDesigning in ALV.ComponentState) then
|
||||
begin
|
||||
if ASortIndicator = siNone then
|
||||
QtTreeWidget.Header.SetSortIndicatorVisible(false)
|
||||
|
Loading…
Reference in New Issue
Block a user