diff options
author | George Hazan <ghazan@miranda.im> | 2019-07-16 16:19:29 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-07-16 16:19:29 +0300 |
commit | 97e7b0bbaeae83cc2d1c66d896a96f868139529c (patch) | |
tree | 9015ba9f435cd3f9bb0bc05a530157c2f811e9fb /plugins/NotesAndReminders/src | |
parent | 1a000805780978abd34d842ddb57bf10bc6857e5 (diff) |
fixes #2000 (Notes&Reminders: wrong timeout periods)
Diffstat (limited to 'plugins/NotesAndReminders/src')
-rw-r--r-- | plugins/NotesAndReminders/src/reminders.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
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)
|