PLASMA_NO_KIO
svn path=/trunk/KDE/kdelibs/; revision=1120689
This commit is contained in:
parent
4c81145215
commit
ba49acf26a
@ -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)));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user