Commit 0f87011a authored by Karel Slaný's avatar Karel Slaný
Browse files

Fixed error. Application was locked when suspended even if PIN was not set.

parent 44893201
......@@ -75,7 +75,7 @@ void Locker::processNewState(Qt::ApplicationState state)
case Qt::ApplicationSuspended:
case Qt::ApplicationHidden:
if (!m_ignoreImmediateSuspension) {
emit lockApp();
inactivityTimeOut();
} else {
/* Was ignored once. */
m_ignoreImmediateSuspension = false;
......
......@@ -61,14 +61,15 @@ public:
public slots:
/*!
* @brief Processes supplied application state. Emits lockApp signal
* if suspension state achieved that should not be ignored.
* @brief Processes supplied application state. Calls
* inactivityTimeOut() if suspension state achieved which should
* not be ignored.
*/
void processNewState(Qt::ApplicationState state);
private slots:
/*!
* @brief Emits lockApp signal.
* @brief Emits lockApp signal if PIN is set.
*/
void inactivityTimeOut(void);
......
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