1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-24 12:46:35 +01:00

Removed qt_id.qm file + implemented suggestion from #319

= append .html when downloading file without suffix
This commit is contained in:
nowrep 2012-03-18 11:06:09 +01:00
parent 955bb18876
commit 60d063a320
2 changed files with 6 additions and 2 deletions

Binary file not shown.

View File

@ -269,11 +269,15 @@ QString DownloadFileHelper::getFileName(QNetworkReply* reply)
baseName = tr("NoNameDownload");
}
if (!endName.isEmpty()) {
endName = "." + endName;
if (endName.isEmpty()) {
endName = "html";
}
endName.prepend(".");
QString name = baseName + endName;
if (name.contains("\"")) {
name.remove("\";");
}