Skip to content

Commit

Permalink
Export Dialog: Avoid appending the wrong extension
Browse files Browse the repository at this point in the history
If the current file extension does not match the first entry
in the "filter" section of the file dialog, the first extension
is erroneosuly appended to the file name.

Moving "All Files ( * )" in front as first entry avoids this.
  • Loading branch information
chris2511 committed Feb 25, 2024
1 parent 45253fa commit 80f457a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widgets/ExportDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ ExportDialog::ExportDialog(QWidget *w, const QString &title,
fname + "." + types[0]->extension;
filename->setText(nativeSeparator(fn));

filter = filt + ";;" + tr("All files ( * )");
filter = tr("All files ( * )") + ";;" + filt;

foreach(const pki_export *t, types) {
if (t->flags & F_USUAL)
Expand Down

0 comments on commit 80f457a

Please sign in to comment.