1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 10: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"); baseName = tr("NoNameDownload");
} }
if (!endName.isEmpty()) { if (endName.isEmpty()) {
endName = "." + endName; endName = "html";
} }
endName.prepend(".");
QString name = baseName + endName; QString name = baseName + endName;
if (name.contains("\"")) { if (name.contains("\"")) {
name.remove("\";"); name.remove("\";");
} }