diff options
author | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-06-22 07:22:50 +0300 |
---|---|---|
committer | Gluzskiy Alexandr <sss@sss.chaoslab.ru> | 2017-06-22 07:24:50 +0300 |
commit | e6b1bd90594255fec34fde0016ca7dd998de940f (patch) | |
tree | c90c5568af48a6c343af423ec063345c92d132db /plugins/Alarms/src | |
parent | a65a55cee364cbc8f9d1938f22f10331618196a5 (diff) |
plugins: alarms: disable snooze in popup mode if snooze time is 0
Diffstat (limited to 'plugins/Alarms/src')
-rwxr-xr-x | plugins/Alarms/src/alarmlist.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/Alarms/src/alarmlist.cpp b/plugins/Alarms/src/alarmlist.cpp index 13263e3583..254e5119fd 100755 --- a/plugins/Alarms/src/alarmlist.cpp +++ b/plugins/Alarms/src/alarmlist.cpp @@ -566,7 +566,7 @@ static LRESULT CALLBACK PopupAlarmDlgProc(HWND hWnd, UINT message, WPARAM wParam if (HIWORD(wParam) == STN_CLICKED) { //It was a click on the Popup.
ALARM *mpd = (ALARM *)CallService(MS_POPUP_GETPLUGINDATA, (WPARAM)hWnd, 0);
- if (mpd->flags & ALF_NOSNOOZE)
+ if (mpd->flags & ALF_NOSNOOZE || !options.snooze_minutes)
return TRUE;
// add snooze minutes to current time
|