Commit e64c1cfc authored by Heiko Becker's avatar Heiko Becker 🏃

Also consider the dot of the filename extension

Thanks to Christoph Feck for noticing!

CCMAIL: cfeck@kde.org
parent 2c1b57b3
......@@ -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);
}
}
......
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment