Skip to content

Commit

Permalink
[devicelock] Fix state not being initialized correctly if no code is …
Browse files Browse the repository at this point in the history
…set. Contributes to MER#1663
  • Loading branch information
adenexter committed Jan 31, 2017
1 parent ce432f4 commit 1818995
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion src/nemo-devicelock/host/hostdevicelock.cpp
Expand Up @@ -105,7 +105,6 @@ bool HostDeviceLock::isUnlocking() const

void HostDeviceLock::unlock()
{
qDebug() << "Unlock" << m_state << state();
if (m_state != Idle || state() == DeviceLock::Unlocked) {
return;
}
Expand Down
1 change: 1 addition & 0 deletions src/nemo-devicelock/host/mcedevicelock.cpp
Expand Up @@ -198,6 +198,7 @@ static const char *reprLockState(bool locked)
void MceDeviceLock::init()
{
setLocked(automaticLocking() >= 0);
stateChanged();
}

/** Evaluate devicelock state we should be in
Expand Down

0 comments on commit 1818995

Please sign in to comment.