summaryrefslogtreecommitdiff
path: root/src/plugins/resourcepolicy
diff options
context:
space:
mode:
authorRobin Burchell <robin.burchell@jollamobile.com>2014-08-11 13:54:05 +0200
committerRobin Burchell <robin.burchell@viroteck.net>2014-08-14 15:14:22 +0200
commit5b3292a14e0c860fc99e0795bb30cc161e934e41 (patch)
tree5e415b4ad9833d0fe45352720bdc4192320c1bc9 /src/plugins/resourcepolicy
parent18e79701e1d7d27128838064e2cd5ccea7d318eb (diff)
downloadqtmultimedia-5b3292a14e0c860fc99e0795bb30cc161e934e41.tar.gz
resourcepolicyplugin: Emit resources released signal for acquiring resources as well.
Change-Id: Ic1b31b1c4dd91251eec278a0840bb06635c828c6 Done-with: Juho Hämäläinen <juho.hamalainen@tieto.com> Reviewed-by: Robin Burchell <robin.burchell@viroteck.net>
Diffstat (limited to 'src/plugins/resourcepolicy')
-rw-r--r--src/plugins/resourcepolicy/resourcepolicyint.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/resourcepolicy/resourcepolicyint.cpp b/src/plugins/resourcepolicy/resourcepolicyint.cpp
index a0086a4da..6118d2df0 100644
--- a/src/plugins/resourcepolicy/resourcepolicyint.cpp
+++ b/src/plugins/resourcepolicy/resourcepolicyint.cpp
@@ -323,7 +323,7 @@ void ResourcePolicyInt::handleResourcesReleased()
m_acquired = 0;
QMap<const ResourcePolicyImpl*, clientEntry>::iterator i = m_clients.begin();
while (i != m_clients.end()) {
- if (i.value().status == GrantedResource) {
+ if (i.value().status != Initial) {
#ifdef RESOURCE_DEBUG
qDebug() << "##### " << i.value().id << ": HANDLE RELEASED, acquired (" << m_acquired << ") emitting resourcesReleased()";
#endif