PLASMA_NO_KIO

svn path=/trunk/KDE/kdelibs/; revision=1120689
This commit is contained in:
Aaron J. Seigo 2010-04-29 17:24:16 +00:00
parent 4c81145215
commit ba49acf26a

View File

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