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:
zeljko 2015-02-14 21:54:29 +00:00
parent 0c1bc741f1
commit be6f83f647

View File

@ -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;