Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge branch 'jb37585' into 'master'
[devicelock] Report showNotifications correctly. Contributes to JB#37585

The property is an integer and false is -1.  An implicit cast to bool
will give the wrong value.

See merge request !9
  • Loading branch information
adenexter committed Feb 9, 2017
2 parents cb6a27e + d04fdab commit efe64f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nemo-devicelock/devicelock.cpp
Expand Up @@ -115,7 +115,7 @@ int DeviceLock::automaticLocking() const

bool DeviceLock::showNotifications() const
{
return m_state <= Locked && m_settings->showNotifications;
return m_state <= Locked && m_settings->showNotifications > 0;
}

/*!
Expand Down

0 comments on commit efe64f9

Please sign in to comment.