diff options
author | matgic78 <matgic78@gmail.com> | 2010-05-29 11:14:46 +0200 |
---|---|---|
committer | matgic78 <matgic78@gmail.com> | 2010-05-29 11:14:46 +0200 |
commit | 517aa8e0218b7427438c9004aaed9c0b78b81999 (patch) | |
tree | b1c59eab521a1c6bc91c7707940c43920e371cbb /src | |
parent | Merge commit 'refs/merge-requests/2286' of git://gitorious.org/rekonq/mainlin... (diff) | |
download | rekonq-517aa8e0218b7427438c9004aaed9c0b78b81999.tar.xz |
Don't start a download if user canceled it
Diffstat (limited to 'src')
-rw-r--r-- | src/webpage.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/webpage.cpp b/src/webpage.cpp index 45059def..4a8c8b6b 100644 --- a/src/webpage.cpp +++ b/src/webpage.cpp @@ -113,6 +113,9 @@ static bool downloadResource (const KUrl& srcUrl, const KIO::MetaData& metaData do { destUrl = KFileDialog::getSaveFileName(fileName, QString(), parent); + + if(destUrl.isEmpty()) + return false; if (destUrl.isLocalFile()) { |