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

resolves isue #60.

Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
pull/63/head
Michele Calgaro 3 years ago
parent 62db8a58bf
commit 5655dd3fdf
Signed by: MicheleC
GPG Key ID: 2A75B7CA8ADED5CF

@ -544,7 +544,21 @@ void AlarmDialog::wakeUp()
} }
if ( activeReminders ) if ( activeReminders )
{
DCOPRef screensaver("kdesktop", "KScreensaverIface");
DCOPReply reply = screensaver.call("isBlanked");
bool res = true;
if (reply.isValid()) {
reply.get(res);
}
show(); 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(); setTimer();
showDetails(); showDetails();
emit reminderCount( activeCount() ); emit reminderCount( activeCount() );

Loading…
Cancel
Save