From d3512a1ff25d21c9bb4e0fc9e91d14780ced994a Mon Sep 17 00:00:00 2001 From: Ladislav Foldyna Date: Tue, 28 Nov 2023 16:39:10 +0100 Subject: [PATCH] Flatpak: Fixed issue with (None) in getOpenFileName --- ui/ImportDialog.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/ImportDialog.cpp b/ui/ImportDialog.cpp index 1afde849..4e2e1b77 100644 --- a/ui/ImportDialog.cpp +++ b/ui/ImportDialog.cpp @@ -60,7 +60,8 @@ void ImportDialog::browse() : ui->fileEdit->text(); QString filename = QFileDialog::getOpenFileName(this, tr("Select File"), - lastPath, "*." + ui->typeSelect->currentText().toLower()); + lastPath, + ui->typeSelect->currentText().toUpper() + "(*." + ui->typeSelect->currentText().toLower() + ")"); if ( !filename.isEmpty() ) { settings.setValue("import/last_path", QFileInfo(filename).path());