summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-11-09 15:43:08 +0200
committerWolf Bergenheim <ext-wolf.2.bergenheim@nokia.com>2010-11-09 15:43:08 +0200
commit2527f203a61103fa2c681156f328a196f264e1f6 (patch)
tree9cab3d265ddc5da113dae4a8deef3f2527cad860
parent19617f18db7cb9ae162719e490f1fac0be663a65 (diff)
downloadlibresourceqt-2527f203a61103fa2c681156f328a196f264e1f6.tar.gz
only emit ResourcesBecameAvailable from advice message
-rw-r--r--libresourceqt/src/resource-engine.cpp7
1 files changed, 1 insertions, 6 deletions
diff --git a/libresourceqt/src/resource-engine.cpp b/libresourceqt/src/resource-engine.cpp
index f5951f3..20cd157 100644
--- a/libresourceqt/src/resource-engine.cpp
+++ b/libresourceqt/src/resource-engine.cpp
@@ -230,12 +230,7 @@ void ResourceEngine::receivedAdvice(resmsg_notify_t *message)
{
uint32_t allResources = allResourcesToBitmask(resourceSet);
qDebug("ResourceEngine(%d) - %s: have: %02x got %02x", identifier, __FUNCTION__, allResources, message->resrc);
- if(message->resrc < allResources) {
- emit resourcesLost(allResources-message->resrc);
- }
- else {
- emit resourcesBecameAvailable(message->resrc);
- }
+ emit resourcesBecameAvailable(message->resrc);
}
bool ResourceEngine::connectToManager()