diff options
author | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-05-28 11:19:21 +0300 |
---|---|---|
committer | Wolf Bergenheim <ext-wolf.2.bergenheim@nokia.com> | 2010-05-28 11:19:21 +0300 |
commit | 5fcbe96c43a70deab3d0ec9af3ecec6c906d245d (patch) | |
tree | edd4f391cee01fab00d143d1b79f6abd8004a5eb /resourceqt-client/client.cpp | |
parent | dc9c29594133291a2944591a359c7adb8f24a85e (diff) |
Fixed bug in trying to register too many times when the first acquire is
called often.
Diffstat (limited to 'resourceqt-client/client.cpp')
-rw-r--r-- | resourceqt-client/client.cpp | 2 |
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]; |