Commit e2da7e66 authored by Friedemann Kleint's avatar Friedemann Kleint Committed by The Qt Project
Browse files

QFileDialogHelper: Force QWindow before setting flags.


Fixes a crash when clicking the dialog icon in the
QtQuickControls gallery example.

Change-Id: I7a3b2321f4a1bf179dced8e98598559f396386db
Reviewed-by: default avatarShawn Rutledge <shawn.rutledge@digia.com>
parent 278139c5
No related merge requests found
Showing with 1 addition and 0 deletions
......@@ -96,6 +96,7 @@ public:
virtual void exec() { m_dialog.exec(); }
virtual bool show(Qt::WindowFlags f, Qt::WindowModality m, QWindow *parent) {
m_dialog.winId();
m_dialog.windowHandle()->setTransientParent(parent);
m_dialog.windowHandle()->setFlags(f);
m_dialog.setWindowModality(m);
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment