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:
parent
955bb18876
commit
60d063a320
Binary file not shown.
@ -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("\";");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user