summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormatgic78 <matgic78@gmail.com>2010-05-29 11:14:46 +0200
committermatgic78 <matgic78@gmail.com>2010-05-29 11:14:46 +0200
commit517aa8e0218b7427438c9004aaed9c0b78b81999 (patch)
treeb1c59eab521a1c6bc91c7707940c43920e371cbb
parentMerge commit 'refs/merge-requests/2286' of git://gitorious.org/rekonq/mainlin... (diff)
downloadrekonq-517aa8e0218b7427438c9004aaed9c0b78b81999.tar.xz
Don't start a download if user canceled it
-rw-r--r--src/webpage.cpp3
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())
{