Change dialogs to use Qt's version.

The native dialogs have different behavior when dealing with
filters. Qt's behavior is well defined.
This commit is contained in:
Ernie Pasveer
2022-01-20 09:03:39 -06:00
parent 0317ae9ec4
commit b5b292fbed
5 changed files with 7 additions and 5 deletions
+3 -3
View File
@@ -196,7 +196,7 @@ void SeerDebugDialog::handleExecutableNameToolButton () {
*/
QString name = QFileDialog::getOpenFileName(this, "Select an Executable to debug.", executableName());
QString name = QFileDialog::getOpenFileName(this, "Select an Executable to debug.", executableName(), "", nullptr, QFileDialog::DontUseNativeDialog);
if (name != "") {
setExecutableName(name);
@@ -231,7 +231,7 @@ void SeerDebugDialog::handleExecutableWorkingDirectoryToolButton () {
*/
QString name = QFileDialog::getExistingDirectory(this, "Select a Working Directory to run in.", executableWorkingDirectory());
QString name = QFileDialog::getExistingDirectory(this, "Select a Working Directory to run in.", executableWorkingDirectory(), QFileDialog::ShowDirsOnly|QFileDialog::DontUseNativeDialog);
if (name != "") {
setExecutableWorkingDirectory(name);
@@ -240,7 +240,7 @@ void SeerDebugDialog::handleExecutableWorkingDirectoryToolButton () {
void SeerDebugDialog::handleLoadCoreFilenameToolButton () {
QString name = QFileDialog::getOpenFileName(this, "Select a core file to debug.", coreFilename(), "Core Files (core core.*)");
QString name = QFileDialog::getOpenFileName(this, "Select a core file to debug.", coreFilename(), "Core Files (core core.*)", nullptr, QFileDialog::DontUseNativeDialog);
if (name != "") {
setCoreFilename(name);