From c1d8cdc8962856419874e24ca47e607b8fbdfa2d Mon Sep 17 00:00:00 2001 From: Veloman Yunkan Date: Tue, 10 Dec 2024 19:28:49 +0400 Subject: [PATCH] File dialog filter with an extension separator dot Included the dot symbol in the "save file as" dialog filter (e.g. for PDF files the filter now is `(*.pdf)` instead of `(*pdf)`). --- src/kprofile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/kprofile.cpp b/src/kprofile.cpp index 71d8913..6c5eb28 100644 --- a/src/kprofile.cpp +++ b/src/kprofile.cpp @@ -39,7 +39,7 @@ QString askForSaveFilePath(const QString& suggestedName) const auto app = KiwixApp::instance(); const QString suggestedPath = app->getPrevSaveDir() + "/" + suggestedName; const QString extension = suggestedName.section(".", -1); - const QString filter = extension.isEmpty() ? "" : "(*" + extension + ")"; + const QString filter = extension.isEmpty() ? "" : "(*." + extension + ")"; QString fileName = QFileDialog::getSaveFileName( app->getMainWindow(), gt("save-file-as-window-title"), suggestedPath, filter);