From 97e7b0bbaeae83cc2d1c66d896a96f868139529c Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 16 Jul 2019 16:19:29 +0300 Subject: fixes #2000 (Notes&Reminders: wrong timeout periods) --- plugins/NotesAndReminders/src/reminders.cpp | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'plugins/NotesAndReminders/src/reminders.cpp') diff --git a/plugins/NotesAndReminders/src/reminders.cpp b/plugins/NotesAndReminders/src/reminders.cpp index 864d880ef6..33a5f7298d 100644 --- a/plugins/NotesAndReminders/src/reminders.cpp +++ b/plugins/NotesAndReminders/src/reminders.cpp @@ -1274,7 +1274,6 @@ public: FileTimeToTzLocalST((FILETIME*)&li2, &tm3); if (tm2.wHour != tm3.wHour || tm2.wMinute != tm3.wMinute) { // boundary crossed - // do a quick and dirty sanity check that times not more than 2 hours apart if (abs((int)(tm3.wHour * 60 + tm3.wMinute) - (int)(tm2.wHour * 60 + tm2.wMinute)) <= 120) { // adjust TT so that same HH:MM is set @@ -1285,21 +1284,6 @@ public: } } } - else { - // parse user input - wchar_t s[32]; - cmbRemindAgainIn.GetText(s, _countof(s)); - - int h = 0, m = 0; - ParseTime(s, &h, &m, TRUE, TRUE); - m += h * 60; - if (!m) { - MessageBox(m_hwnd, TranslateT("The specified time offset is invalid."), _A2W(SECTIONNAME), MB_OK | MB_ICONWARNING); - return; - } - - TT = m * 60; - } // reset When from the current time if (!m_pReminder->bRepeat) -- cgit v1.2.3