summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNic Zonta <[email protected]>2025-06-03 15:39:10 +0200
committerNic Zonta <[email protected]>2025-06-06 13:20:27 +0200
commit25fdc044f58d426c3056409e2883becdc3cf0bd1 (patch)
tree7ade6b2e497829da77501bf63e2d0bf9df8af8ee
parent839d569dc27cfa5188db477893899d849ac26ea5 (diff)
make all convenience functions in QFileDialog open modal dialogsHEADdev
most convenience functions in qfiledialog.cpp (e.g. getSaveFileUrl, getOpenFileUrl) open modal dialogs, with the exception of getOpenFileContent and saveFileContent. This makes every function consistently open modal dialogs Fixes: QTBUG-137329 Pick-to: 6.10 6.9 Change-Id: I48952144ed15596b9acba3230c63cece613fb045 Reviewed-by: David Faure <[email protected]> Reviewed-by: Axel Spoerl <[email protected]>
-rw-r--r--src/widgets/dialogs/qfiledialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/widgets/dialogs/qfiledialog.cpp b/src/widgets/dialogs/qfiledialog.cpp
index 00a6193a82c..fee57003943 100644
--- a/src/widgets/dialogs/qfiledialog.cpp
+++ b/src/widgets/dialogs/qfiledialog.cpp
@@ -2333,7 +2333,7 @@ void QFileDialog::getOpenFileContent(const QString &nameFilter, const std::funct
};
connect(dialog, &QFileDialog::fileSelected, dialog, fileSelected);
- dialog->show();
+ dialog->open();
#endif
}
@@ -2376,7 +2376,7 @@ void QFileDialog::saveFileContent(const QByteArray &fileContent, const QString &
connect(dialog, &QFileDialog::fileSelected, dialog, fileSelected);
dialog->setAttribute(Qt::WA_DeleteOnClose);
- dialog->show();
+ dialog->open();
#endif
}