mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-31 17:20:37 +02:00
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:
parent
6c411e2adb
commit
5320d568ad
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user