summaryrefslogtreecommitdiff
path: root/src/webtab/sslinfodialog.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2013-03-14 14:28:59 +0100
committerAndrea Diamantini <adjam7@gmail.com>2013-03-14 14:28:59 +0100
commite1f28c6b3809cb55f5c1462a3a02d018b50823dd (patch)
treecc14e7512db62a50693416bb32c1eacc33b6aec4 /src/webtab/sslinfodialog.cpp
parentRestore activity daemon support (diff)
downloadrekonq-e1f28c6b3809cb55f5c1462a3a02d018b50823dd.tar.xz
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
Diffstat (limited to 'src/webtab/sslinfodialog.cpp')
-rw-r--r--src/webtab/sslinfodialog.cpp6
1 files changed, 4 insertions, 2 deletions
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;