Commit 7348ae15 authored by Andrew den Exter's avatar Andrew den Exter

Merge branch 'jb38327' into 'master'

[devicelock] Emit the locked signal if the connection to device lock is lost. Fixes JB#38327

See merge request !20
parents 88375986 5fd5169e
......@@ -73,6 +73,8 @@ DeviceLock::DeviceLock(QObject *parent)
connected();
});
m_connection->onDisconnected(this, [this] {
const bool wasUnlocked = m_state == Unlocked;
m_state = Undefined;
if (m_unlocking) {
......@@ -81,6 +83,10 @@ DeviceLock::DeviceLock(QObject *parent)
}
emit stateChanged();
if (wasUnlocked) {
emit locked();
}
});
if (m_connection->isConnected()) {
connected();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment