1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Reverted adding ".html" to downloads without suffix from 60d063a320

This commit is contained in:
nowrep 2012-03-22 19:41:12 +01:00
parent 9a0a91ec46
commit 9dc38ca000
2 changed files with 3 additions and 6 deletions

View File

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

View File

@ -54,7 +54,7 @@ void PageScreen::dialogAccepted()
{
const QString &suggestedPath = QDir::homePath() + "/" + QString("%1.png").arg(qz_filterCharsFromFilename(m_pageTitle));
QString path = QFileDialog::getSaveFileName(this, tr("Save Page Screen..."),
suggestedPath);
suggestedPath);
if (!path.isEmpty()) {
if (!path.endsWith(".png", Qt::CaseInsensitive)) {