mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-13 12:29:24 +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;
|
exit;
|
||||||
|
|
||||||
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
||||||
if Assigned(QtTreeWidget) then
|
if Assigned(QtTreeWidget) and
|
||||||
|
not (csDesigning in ALV.ComponentState) then
|
||||||
begin
|
begin
|
||||||
if ASortIndicator = siNone then
|
if ASortIndicator = siNone then
|
||||||
QtTreeWidget.Header.SetSortIndicatorVisible(false)
|
QtTreeWidget.Header.SetSortIndicatorVisible(false)
|
||||||
|
@ -892,7 +892,8 @@ begin
|
|||||||
exit;
|
exit;
|
||||||
|
|
||||||
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
QtTreeWidget := TQtTreeWidget(ALV.Handle);
|
||||||
if Assigned(QtTreeWidget) then
|
if Assigned(QtTreeWidget) and
|
||||||
|
not (csDesigning in ALV.ComponentState) then
|
||||||
begin
|
begin
|
||||||
if ASortIndicator = siNone then
|
if ASortIndicator = siNone then
|
||||||
QtTreeWidget.Header.SetSortIndicatorVisible(false)
|
QtTreeWidget.Header.SetSortIndicatorVisible(false)
|
||||||
|
Loading…
Reference in New Issue
Block a user