korganizer: do not show reminders on top of a locked screen. This

resolves isue #60.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
(cherry picked from commit 5655dd3fdf)
r14.0.x r14.0.11
Michele Calgaro 3 years ago
parent 4df670b004
commit 14f3e461a2
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -544,7 +544,21 @@ void AlarmDialog::wakeUp()
}
if ( activeReminders )
{
DCOPRef screensaver("kdesktop", "KScreensaverIface");
DCOPReply reply = screensaver.call("isBlanked");
bool res = true;
if (reply.isValid()) {
reply.get(res);
}
show();
if (res)
{
// Lower the dialog if the screensaver is active or its status unknown.
// This prevents reminders to show on a locked screen.
lower();
}
}
setTimer();
showDetails();
emit reminderCount( activeCount() );

Loading…
Cancel
Save