diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2010-11-15 00:25:08 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2010-11-15 00:25:08 +0100 |
commit | 9a05e4f42f3989733457118a03d3bba93a0e2033 (patch) | |
tree | be2408faa197ec8df9c723c68c2c1790dd24737e /src/webpage.cpp | |
parent | Some small fixes (diff) | |
download | rekonq-9a05e4f42f3989733457118a03d3bba93a0e2033.tar.xz |
Fix wrong default filenames due to a ":" in it
websvn:1182549 for reference
Diffstat (limited to 'src/webpage.cpp')
-rw-r--r-- | src/webpage.cpp | 5 |
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; |