diff --git a/lcl/interfaces/qt/qtwscomctrls.pp b/lcl/interfaces/qt/qtwscomctrls.pp index 18d386f38c..3e0a8d9a0a 100644 --- a/lcl/interfaces/qt/qtwscomctrls.pp +++ b/lcl/interfaces/qt/qtwscomctrls.pp @@ -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;