From e6b1bd90594255fec34fde0016ca7dd998de940f Mon Sep 17 00:00:00 2001 From: Gluzskiy Alexandr Date: Thu, 22 Jun 2017 07:22:50 +0300 Subject: plugins: alarms: disable snooze in popup mode if snooze time is 0 --- plugins/Alarms/src/alarmlist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins/Alarms') 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 -- cgit v1.2.3