From 3d9873db75cd39de6c381a09474440a92ac43751 Mon Sep 17 00:00:00 2001 From: Felix Kauselmann Date: Tue, 6 Jul 2021 15:00:55 +0200 Subject: [PATCH] Always export libraries as .ydb --- YACReaderLibrary/export_comics_info_dialog.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/YACReaderLibrary/export_comics_info_dialog.cpp b/YACReaderLibrary/export_comics_info_dialog.cpp index 171bd0c1..f440fa4d 100644 --- a/YACReaderLibrary/export_comics_info_dialog.cpp +++ b/YACReaderLibrary/export_comics_info_dialog.cpp @@ -65,7 +65,7 @@ void ExportComicsInfoDialog::findPath() { QString s = QFileDialog::getSaveFileName(this, tr("Destination database name"), ".", "*.ydb"); if (!s.isEmpty()) { - path->setText(s); + path->setText(s.endsWith(".ydb") ? s : s + ".ydb"); accept->setEnabled(true); } }