Skip to content

Commit

Permalink
Merge branch 'mer1663' into 'master'
Browse files Browse the repository at this point in the history
[devicelock] Fix state not being initialized correctly if no code is set. Contributes to MER#1663

See merge request !6
  • Loading branch information
adenexter committed Jan 31, 2017
2 parents ce432f4 + 1818995 commit 925fc5e
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 925fc5e

Please sign in to comment.