summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHeiko Becker <[email protected]>2017-11-11 12:17:12 +0100
committerHeiko Becker <[email protected]>2017-11-11 12:17:12 +0100
commite64c1cfcb3c6f71f8d7bfd012853734bfdfc1155 (patch)
treea83808ccf98bdd7a5691e89caea711ca86eaa7ec
parent2c1b57b34ea6f2dc9514c17aebac099919ad556b (diff)
Also consider the dot of the filename extension
Thanks to Christoph Feck for noticing! CCMAIL: [email protected]
-rw-r--r--mainwindow.cpp2
-rw-r--r--ui/signaturedlg.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/mainwindow.cpp b/mainwindow.cpp
index fbbe2f6..5244152 100644
--- a/mainwindow.cpp
+++ b/mainwindow.cpp
@@ -605,7 +605,7 @@ void MainWindow::slotExportTransfers()
);
if (!filename.isEmpty()) {
- const bool plain = !filename.endsWith(QLatin1String("kgt"));
+ const bool plain = !filename.endsWith(QLatin1String(".kgt"));
KGet::save(filename, plain);
}
}
diff --git a/ui/signaturedlg.cpp b/ui/signaturedlg.cpp
index 2940e4f..0b4883c 100644
--- a/ui/signaturedlg.cpp
+++ b/ui/signaturedlg.cpp
@@ -102,7 +102,7 @@ void SignatureDlg::loadSignatureClicked()
return;
}
- const bool isAsciiSig = url.fileName().endsWith(QLatin1String("asc"));
+ const bool isAsciiSig = url.fileName().endsWith(QLatin1String(".asc"));
clearData();
handleWidgets(isAsciiSig);
ui.signature->clear();