From dc7bd9bbb56c06c28ccc629bf8efd4c970dbe4a4 Mon Sep 17 00:00:00 2001 From: "Aaron J. Seigo" Date: Mon, 13 Apr 2009 16:39:42 +0000 Subject: [PATCH] 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 --- wallpaper.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wallpaper.cpp b/wallpaper.cpp index 3f86dd3ff..6f1d16341 100644 --- a/wallpaper.cpp +++ b/wallpaper.cpp @@ -392,7 +392,8 @@ void Wallpaper::insertIntoCache(const QString& key, const QImage &image) //TODO: cache limits? if (d->cacheRendering) { if (image.isNull()) { - KIO::file_delete(d->cachePath(key)); + KIO::SimpleJob *job = KIO::file_delete(d->cachePath(key)); + job->exec(); } else { image.save(d->cachePath(key)); }