QT: Fix not firing OnShow of TColorDialog and TFontDialog. Part of Issue #0030449.

git-svn-id: trunk@52815 -
This commit is contained in:
bart 2016-08-17 11:48:44 +00:00
parent df62e1d21c
commit 811a82264e

View File

@ -890,6 +890,9 @@ begin
X11Raise(QWidget_winID(TQtWidget(AWND).Widget));
end;
{$ENDIF}
//Since TQtWSColorDialog.CreateHandle returns 0, in TCommonDialog.Close DoClose will not be called,
//so call it from here
ACommonDialog.DoClose;
end;
{ TQtWSFontDialog }
@ -967,6 +970,9 @@ begin
X11Raise(QWidget_winID(TQtWidget(AWND).Widget));
end;
{$ENDIF}
//Since TQtWSFontDialog.CreateHandle returns 0, in TCommonDialog.Close DoClose will not be called,
//so call it from here
ACommonDialog.DoClose;
end;
end.