@@ -247,7 +247,7 @@ DBusUnitySessionService::DBusUnitySessionService()
247 QDBusConnection::SM_BUSNAME().connect(LOGIN1_SERVICE, d->logindSessionPath, LOGIN1_SESSION_IFACE, QStringLiteral("Lock"), this, SLOT(PromptLock()));
247 QDBusConnection::SM_BUSNAME().connect(LOGIN1_SERVICE, d->logindSessionPath, LOGIN1_SESSION_IFACE, QStringLiteral("Lock"), this, SLOT(PromptLock()));
248 // ... and our Unlocked() signal to the logind's session Unlock() signal
248 // ... and our Unlocked() signal to the logind's session Unlock() signal
249 // (lightdm handles the unlocking by calling logind's Unlock method which in turn emits this signal we connect to)
249 // (lightdm handles the unlocking by calling logind's Unlock method which in turn emits this signal we connect to)
250− QDBusConnection::SM_BUSNAME().connect(LOGIN1_SERVICE, d->logindSessionPath, LOGIN1_SESSION_IFACE, QStringLiteral("Unlock"), this, SIGNAL(Unlocked()));
250+ QDBusConnection::SM_BUSNAME().connect(LOGIN1_SERVICE, d->logindSessionPath, LOGIN1_SESSION_IFACE, QStringLiteral("Unlock"), this, SLOT(doUnlock()));
251 connect(d, &DBusUnitySessionServicePrivate::prepareForSleep, this, &DBusUnitySessionService::PromptLock);
251 connect(d, &DBusUnitySessionServicePrivate::prepareForSleep, this, &DBusUnitySessionService::PromptLock);
253 qWarning() << "Failed to connect to logind's session Lock/Unlock signals";
253 qWarning() << "Failed to connect to logind's session Lock/Unlock signals";
@@ -361,9 +361,8 @@ void DBusUnitySessionService::Lock()
361 // time the indicator locks without also asking the display manager to
361 // time the indicator locks without also asking the display manager to
362 // switch sessions on us. And since we are switching screens, we also
362 // switch sessions on us. And since we are switching screens, we also
363 // don't bother respecting the animate request, simply doing a PromptLock.
363 // don't bother respecting the animate request, simply doing a PromptLock.
366 PromptLock();
364 PromptLock();
369void DBusUnitySessionService::switchToGreeter()
368void DBusUnitySessionService::switchToGreeter()
@@ -392,6 +391,12 @@ void DBusUnitySessionService::switchToGreeter()
394+void DBusUnitySessionService::doUnlock()
395bool DBusUnitySessionService::IsLocked() const
400bool DBusUnitySessionService::IsLocked() const
397 return !d->isSessionActive;
402 return !d->isSessionActive;