summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-17 22:45:02 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-17 22:45:02 +0300
commit520b6bbc44cf86dd0a761379e7002d850c7c0079 (patch)
tree0cc9243ec652d011b891d488099ab74f91e07ec6 /src/gui/widgets
parent154186bc49d49f1c20c3fcf8ec79494460ed63af (diff)
downloadplus-520b6bbc44cf86dd0a761379e7002d850c7c0079.tar.gz
plus-520b6bbc44cf86dd0a761379e7002d850c7c0079.tar.bz2
plus-520b6bbc44cf86dd0a761379e7002d850c7c0079.tar.xz
plus-520b6bbc44cf86dd0a761379e7002d850c7c0079.zip
fix crash on window resize.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/desktop.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/widgets/desktop.cpp b/src/gui/widgets/desktop.cpp
index 2be86f615..32c8a4988 100644
--- a/src/gui/widgets/desktop.cpp
+++ b/src/gui/widgets/desktop.cpp
@@ -162,7 +162,7 @@ void Desktop::setBestFittingWallpaper()
ResourceManager *const resman = ResourceManager::getInstance();
if (mWallpaper)
{
- resman->moveToDeleted(mWallpaper);
+ resman->decRefDelete(mWallpaper);
mWallpaper = nullptr;
}
@@ -180,7 +180,7 @@ void Desktop::setBestFittingWallpaper()
if (newRsclWlPpr)
{
- resman->moveToDeleted(nWallPaper);
+ resman->decRefDelete(nWallPaper);
// We replace the resource in the resource manager
mWallpaper = newRsclWlPpr;
}