summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-11-15 00:25:08 +0100
committerAndrea Diamantini <adjam7@gmail.com>2010-11-15 00:25:08 +0100
commit9a05e4f42f3989733457118a03d3bba93a0e2033 (patch)
treebe2408faa197ec8df9c723c68c2c1790dd24737e
parentSome small fixes (diff)
downloadrekonq-9a05e4f42f3989733457118a03d3bba93a0e2033.tar.xz
Fix wrong default filenames due to a ":" in it
websvn:1182549 for reference
-rw-r--r--src/webpage.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp
index 2347b6d8..f08aebd6 100644
--- a/src/webpage.cpp
+++ b/src/webpage.cpp
@@ -109,11 +109,12 @@ static bool downloadResource (const KUrl& srcUrl, const KIO::MetaData& metaData
KUrl destUrl;
int result = KIO::R_OVERWRITE;
- const QUrl fileName ((suggestedName.isEmpty() ? srcUrl.fileName() : suggestedName));
+ const QString fileName ((suggestedName.isEmpty() ? srcUrl.fileName() : suggestedName));
do
{
- destUrl = KFileDialog::getSaveFileName(fileName, QString(), parent);
+ // follow bug:184202 fixes
+ destUrl = KFileDialog::getSaveFileName(KUrl::fromPath(fileName), QString(), parent);
if(destUrl.isEmpty())
return false;