diff --git a/libnotificationmanager/server_p.cpp b/libnotificationmanager/server_p.cpp --- a/libnotificationmanager/server_p.cpp +++ b/libnotificationmanager/server_p.cpp @@ -346,14 +346,16 @@ { qCDebug(NOTIFICATIONMANAGER) << "Inhibition service unregistered" << serviceName; - const uint cookie = m_inhibitionServices.key(serviceName); - if (!cookie) { + const QList cookies = m_inhibitionServices.keys(serviceName); + if (cookies.isEmpty()) { qCInfo(NOTIFICATIONMANAGER) << "Unknown inhibition service unregistered" << serviceName; return; } // We do lookups in there again... - UnInhibit(cookie); + for (uint cookie : cookies) { + UnInhibit(cookie); + } } void ServerPrivate::UnInhibit(uint cookie)