From 7fdf21f1551515807578c0fa473c889ce036aa18 Mon Sep 17 00:00:00 2001 From: Andrea Diamantini Date: Sun, 18 Dec 2011 01:20:17 +0100 Subject: 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?? --- src/iconmanager.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src') 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 -#include #include #include @@ -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(j); + KIO::FileCopyJob *job = static_cast(j); KUrl dest = job->destUrl(); QString s = dest.url().remove(QL1S("file://")); -- cgit v1.2.1