exec the job; it's a simple operation (remove a file) and this works when the application is about to quit. i wonder if there's a way to manually flush kio jobs on app exit? i don't really want this to be exec'd, i just want to be sure that the job is started!
svn path=/trunk/KDE/kdelibs/; revision=953292
This commit is contained in:
parent
a8068361b0
commit
dc7bd9bbb5
@ -392,7 +392,8 @@ void Wallpaper::insertIntoCache(const QString& key, const QImage &image)
|
|||||||
//TODO: cache limits?
|
//TODO: cache limits?
|
||||||
if (d->cacheRendering) {
|
if (d->cacheRendering) {
|
||||||
if (image.isNull()) {
|
if (image.isNull()) {
|
||||||
KIO::file_delete(d->cachePath(key));
|
KIO::SimpleJob *job = KIO::file_delete(d->cachePath(key));
|
||||||
|
job->exec();
|
||||||
} else {
|
} else {
|
||||||
image.save(d->cachePath(key));
|
image.save(d->cachePath(key));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user