summaryrefslogtreecommitdiff
path: root/resourceqt-client
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-05-28 11:19:21 +0300
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-05-28 11:19:21 +0300
commit5fcbe96c43a70deab3d0ec9af3ecec6c906d245d (patch)
treeedd4f391cee01fab00d143d1b79f6abd8004a5eb /resourceqt-client
parentdc9c29594133291a2944591a359c7adb8f24a85e (diff)
downloadlibresourceqt-5fcbe96c43a70deab3d0ec9af3ecec6c906d245d.tar.gz
Fixed bug in trying to register too many times when the first acquire is
called often.
Diffstat (limited to 'resourceqt-client')
-rw-r--r--resourceqt-client/client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/resourceqt-client/client.cpp b/resourceqt-client/client.cpp
index c7e97f6..46fd8c9 100644
--- a/resourceqt-client/client.cpp
+++ b/resourceqt-client/client.cpp
@@ -101,7 +101,7 @@ void Client::updateSet(uint32_t list, uint32_t optional, bool remove)
int pos = 0;
while (resources[pos]) {
- if (list & resources[pos]) {
+ if ((list & resources[pos]) == resources[pos]) {
Resource* resource = NULL;
ResourceType res = getResourceType(resources[pos]);
bool opt = (optional & resources[pos]) == resources[pos];