make all convenience functions in QFileDialog open modal dialogs
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 <david.faure@kdab.com> Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
This commit is contained in:
parent
839d569dc2
commit
25fdc044f5
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user