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))); }