Skip to content

Commit

Permalink
[mcedevicelock] Use correct slot type in inactivity connect. Fixes JB…
Browse files Browse the repository at this point in the history
…#37002

While every other mce D-Bus signals that device lock plugins listens to
carries string value, the inactivity state has boolean value. Probably
this was missed during refactoring and incorrect slot type is used, which
leads to device lock plugin ignoring user activity altogether and device
gets locked too early / despite being actively used.

Use connect type that matches the handleInactivityStateChanged() slot.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Nov 29, 2016
1 parent 0cbca58 commit 94dd27f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/mcedevicelock.cpp
Expand Up @@ -244,7 +244,7 @@ void MceDeviceLock::trackInactivityState(void)
trackMceProperty(
this,
QStringLiteral(MCE_INACTIVITY_SIG),
SLOT(handleInactivityStateChanged(QString)),
SLOT(handleInactivityStateChanged(bool)),
QStringLiteral(MCE_INACTIVITY_STATUS_GET),
&MceDeviceLock::handleInactivityStateReply);
}
Expand Down

0 comments on commit 94dd27f

Please sign in to comment.