diff options
author | Andrea Diamantini <adjam7@gmail.com> | 2012-02-05 07:34:56 +0100 |
---|---|---|
committer | Andrea Diamantini <adjam7@gmail.com> | 2012-02-05 07:34:56 +0100 |
commit | df91591f4a692b42bb9e2ee5bfad309ce3e29957 (patch) | |
tree | 86ab0c0569a2c72b97921f032f99097f707f240a /src/downloadmanager.cpp | |
parent | clean up filename content disposition retrieve (diff) | |
download | rekonq-df91591f4a692b42bb9e2ee5bfad309ce3e29957.tar.xz |
clean up download management
Remove one unuseful slot in webpage and better manage download dialog,
following rekonq AND KDE settings.
Diffstat (limited to 'src/downloadmanager.cpp')
-rw-r--r-- | src/downloadmanager.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/downloadmanager.cpp b/src/downloadmanager.cpp index 2e7e4607..dd3cb119 100644 --- a/src/downloadmanager.cpp +++ b/src/downloadmanager.cpp @@ -141,13 +141,14 @@ void DownloadManager::downloadLinksWithKGet(const QVariant &contentList) // In this way, we can easily provide the extra functionality we need: // 1. KGet Integration // 2. Save downloads history -bool DownloadManager::downloadResource(const KUrl &srcUrl, const KIO::MetaData &metaData, QWidget *parent, const QString &suggestedName) +bool DownloadManager::downloadResource(const KUrl &srcUrl, const KIO::MetaData &metaData, + QWidget *parent, bool forceDirRequest, const QString &suggestedName) { KUrl destUrl; const QString fileName((suggestedName.isEmpty() ? srcUrl.fileName() : suggestedName)); - if (ReKonfig::askDownloadPath()) + if (forceDirRequest || ReKonfig::askDownloadPath()) { // follow bug:184202 fixes destUrl = KFileDialog::getSaveFileName(KUrl::fromPath(fileName), QString(), parent); |