From ba49acf26ac706cc5c9a8789324f2db7ad8f23c2 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Thu, 29 Apr 2010 17:24:16 +0000 Subject: [PATCH] PLASMA_NO_KIO svn path=/trunk/KDE/kdelibs/; revision=1120689 --- wallpaper.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/wallpaper.cpp b/wallpaper.cpp index 2704530c1..485804ddc 100644 --- a/wallpaper.cpp +++ b/wallpaper.cpp @@ -631,7 +631,12 @@ void Wallpaper::insertIntoCache(const QString& key, const QImage &image) if (d->cacheRendering) { if (image.isNull()) { +#ifndef PLASMA_NO_KIO KIO::file_delete(d->cachePath(key)); +#else + QFile f(d->cachePath(key)); + f.remove(): +#endif } else { QThreadPool::globalInstance()->start(new SaveImageThread(image, d->cachePath(key))); }