mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-23 10:22:48 +00:00
plasma: Plasma::Wallpaper::insertIntoCache() optimization
only for the case when build without KIO Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
a50ed438a3
commit
700d1f4317
1 changed files with 1 additions and 2 deletions
|
@ -602,8 +602,7 @@ void Wallpaper::insertIntoCache(const QString& key, const QImage &image)
|
|||
#ifndef PLASMA_NO_KIO
|
||||
KIO::file_delete(d->cachePath(key));
|
||||
#else
|
||||
QFile f(d->cachePath(key));
|
||||
f.remove();
|
||||
QFile::remove(d->cachePath(key));
|
||||
#endif
|
||||
} else {
|
||||
image.save(d->cachePath(key), imageFormat, 100);
|
||||
|
|
Loading…
Add table
Reference in a new issue