Qt: do not destroy QWidget of ScrollArea, it will be destroyed by it's parent later (problem on MacOSX).

git-svn-id: trunk@45002 -
This commit is contained in:
zeljko 2014-05-11 10:37:07 +00:00
parent 6c411e2adb
commit 5320d568ad

View File

@ -6510,8 +6510,6 @@ begin
if QtWidgetSet.IsValidHandle(HWND(ScrollArea)) then
begin
ScrollArea.DetachEvents;
if FOwnWidget and (ScrollArea.Widget <> nil) then
QWidget_destroy(ScrollArea.Widget);
ScrollArea.Widget := nil;
FreeAndNil(ScrollArea);
end;