mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56:34 +01:00
Reverted adding ".html" to downloads without suffix from 60d063a320
This commit is contained in:
parent
9a0a91ec46
commit
9dc38ca000
@ -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("\"")) {
|
||||
|
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user