mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-12-06 02:17:15 +01:00
Qt: fixed segfault when setting image list on TListView with OwnerData:=True. part of issue #27469
git-svn-id: trunk@47790 -
This commit is contained in:
parent
0c1bc741f1
commit
be6f83f647
@ -1992,7 +1992,8 @@ class procedure TQtWSCustomListView.SetImageList(const ALV: TCustomListView;
|
||||
begin
|
||||
if not WSCheckHandleAllocated(ALV, 'SetImageList') then
|
||||
Exit;
|
||||
RecreateWnd(ALV);
|
||||
if not ALV.OwnerData then
|
||||
RecreateWnd(ALV);
|
||||
end;
|
||||
|
||||
class procedure TQtWSCustomListView.SetItemsCount(const ALV: TCustomListView;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user