summaryrefslogtreecommitdiffstats
path: root/src/widgets/dialogs/qdialog.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/widgets/dialogs/qdialog.cpp')
-rw-r--r--src/widgets/dialogs/qdialog.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/widgets/dialogs/qdialog.cpp b/src/widgets/dialogs/qdialog.cpp
index df76d0af0e..718d64bd27 100644
--- a/src/widgets/dialogs/qdialog.cpp
+++ b/src/widgets/dialogs/qdialog.cpp
@@ -108,11 +108,9 @@ bool QDialogPrivate::setNativeDialogVisible(bool visible)
{
if (QPlatformDialogHelper *helper = platformHelper()) {
if (visible) {
+ Q_Q(QDialog);
helperPrepareShow(helper);
- QPlatformDialogHelper::ShowFlags flags(0);
- if (q_func()->isModal())
- flags |= QPlatformDialogHelper::ShowModal;
- nativeDialogInUse = helper->show_sys(flags, q_func()->windowFlags(), parentWindow());
+ nativeDialogInUse = helper->show_sys(q->windowFlags(), q->windowModality(), parentWindow());
} else {
helper->hide_sys();
}