From 5b3292a14e0c860fc99e0795bb30cc161e934e41 Mon Sep 17 00:00:00 2001 From: Robin Burchell Date: Mon, 11 Aug 2014 13:54:05 +0200 Subject: [PATCH] resourcepolicyplugin: Emit resources released signal for acquiring resources as well. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: Ic1b31b1c4dd91251eec278a0840bb06635c828c6 Done-with: Juho Hämäläinen Reviewed-by: Robin Burchell --- src/plugins/resourcepolicy/resourcepolicyint.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/resourcepolicy/resourcepolicyint.cpp b/src/plugins/resourcepolicy/resourcepolicyint.cpp index a0086a4d..6118d2df 100644 --- a/src/plugins/resourcepolicy/resourcepolicyint.cpp +++ b/src/plugins/resourcepolicy/resourcepolicyint.cpp @@ -323,7 +323,7 @@ void ResourcePolicyInt::handleResourcesReleased() m_acquired = 0; QMap::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