summaryrefslogtreecommitdiff
path: root/src/resources/resource.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-14 22:11:56 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-14 22:11:56 +0300
commitd0b0c1c8bbb8ce9fbf93887ed7dae5f779d17a21 (patch)
tree169feb38c052933325683490b9174aff48a2a438 /src/resources/resource.cpp
parenta2c06346e1830d888a72ccdb2e224686319af014 (diff)
downloadplus-d0b0c1c8bbb8ce9fbf93887ed7dae5f779d17a21.tar.gz
plus-d0b0c1c8bbb8ce9fbf93887ed7dae5f779d17a21.tar.bz2
plus-d0b0c1c8bbb8ce9fbf93887ed7dae5f779d17a21.tar.xz
plus-d0b0c1c8bbb8ce9fbf93887ed7dae5f779d17a21.zip
add flag into resource and imageset what prevent subimage or other resource from auto removing.
Diffstat (limited to 'src/resources/resource.cpp')
-rw-r--r--src/resources/resource.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resources/resource.cpp b/src/resources/resource.cpp
index b111a4081..b67fe644b 100644
--- a/src/resources/resource.cpp
+++ b/src/resources/resource.cpp
@@ -49,7 +49,7 @@ void Resource::decRef()
mRefCount--;
- if (mRefCount == 0)
+ if (mRefCount == 0 && !mNotCount)
{
// Warn the manager that this resource is no longer used.
ResourceManager *const resman = ResourceManager::getInstance();