Skip to content

Commit

Permalink
Flatpak: Fixed issue with (None) in getOpenFileName
Browse files Browse the repository at this point in the history
  • Loading branch information
foldynl committed Nov 28, 2023
1 parent a10dc9f commit d3512a1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/ImportDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down

0 comments on commit d3512a1

Please sign in to comment.