From e1f28c6b3809cb55f5c1462a3a02d018b50823dd Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Thu, 14 Mar 2013 14:28:59 +0100 Subject: Let rekonq save file remotely (again) Restored the (il)logic fix applied for bug 242675 and added a big note to NOT remove it again BUG: 316684 --- src/download/downloadmanager.cpp | 4 +++- src/webtab/sslinfodialog.cpp | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/download/downloadmanager.cpp b/src/download/downloadmanager.cpp index 95b31543..1189ec18 100644 --- a/src/download/downloadmanager.cpp +++ b/src/download/downloadmanager.cpp @@ -220,7 +220,9 @@ bool DownloadManager::downloadResource(const KUrl &srcUrl, const KIO::MetaData & if (forceDirRequest || ReKonfig::askDownloadPath()) { // follow bug:184202 fixes - destUrl = KFileDialog::getSaveFileName(fileName, QString(), parent); + // NOTE: Please, NO MORE use here getSaveFileName as it seems it cannot properly + // handle remote urls + destUrl = KFileDialog::getSaveUrl(fileName, QString(), parent); } else { diff --git a/src/webtab/sslinfodialog.cpp b/src/webtab/sslinfodialog.cpp index 2f0b44e4..e0ae6dea 100644 --- a/src/webtab/sslinfodialog.cpp +++ b/src/webtab/sslinfodialog.cpp @@ -139,9 +139,11 @@ void SslInfoDialog::exportCert() QString name = m_host + QL1S(".pem"); - QString certPath = KFileDialog::getSaveFileName(name, QString(), this); + // NOTE: Please, no more use here getSaveFileName as it seems it cannot properly + // handle remote URLs + KUrl certPath = KFileDialog::getSaveUrl(name, QString(), this); - QFile file(certPath); + QFile file(certPath.pathOrUrl()); if (!file.open(QIODevice::WriteOnly | QIODevice::Text)) return; -- cgit v1.2.1