summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2011-12-18 01:20:17 +0100
committerAndrea Diamantini <adjam7@gmail.com>2011-12-18 01:21:46 +0100
commit7fdf21f1551515807578c0fa473c889ce036aa18 (patch)
treecb118cc602ada43b723df525b64f04caf2d44950 /src
parentHome page shortcut containing CTRL fix (diff)
downloadrekonq-7fdf21f1551515807578c0fa473c889ce036aa18.tar.xz
Revert a small part of commit 3e59ea5cab2a097
This will let iconmanager to NOT disturb users with dialog about missing (remote) icons. Really, do you know the difference between KIO::copy and KIO::file_copy??
Diffstat (limited to 'src')
-rw-r--r--src/iconmanager.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/iconmanager.cpp b/src/iconmanager.cpp
index d4564390..ea36c45a 100644
--- a/src/iconmanager.cpp
+++ b/src/iconmanager.cpp
@@ -34,7 +34,6 @@
// KDE Includes
#include <KIO/Job>
-#include <kio/copyjob.h>
#include <KIcon>
#include <KMimeType>
@@ -151,7 +150,7 @@ void IconManager::provideIcon(QWebPage *page, const KUrl &url, bool notify)
KUrl destUrl(_faviconsDir + url.host() + QL1S(".png"));
// download icon
- KIO::CopyJob *job = KIO::copy(faviconUrl, destUrl, KIO::HideProgressInfo);
+ KIO::FileCopyJob *job = KIO::file_copy(faviconUrl, destUrl, -1, KIO::HideProgressInfo);
if (notify)
connect(job, SIGNAL(result(KJob*)), this, SLOT(notifyLastStuffs(KJob *)));
else
@@ -184,7 +183,7 @@ void IconManager::doLastStuffs(KJob *j)
return;
}
- KIO::CopyJob *job = static_cast<KIO::CopyJob *>(j);
+ KIO::FileCopyJob *job = static_cast<KIO::FileCopyJob *>(j);
KUrl dest = job->destUrl();
QString s = dest.url().remove(QL1S("file://"));