diff options
author | George Hazan <ghazan@miranda.im> | 2021-03-19 18:05:37 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2021-03-19 18:05:41 +0300 |
commit | 0f46a02f86e2049dd99ac4c7f6478c08f279a589 (patch) | |
tree | 7b2c5ea57f1db6ceaaf06025946a6b45399c6dc7 /plugins/NotesAndReminders/src | |
parent | 79478c645fcec54f2fdc9ed22068fb2fdbd0120e (diff) |
fixes #2773 (Notes and Reminders: невозможно выставить существующей напоминалке более раннее время)
Diffstat (limited to 'plugins/NotesAndReminders/src')
-rw-r--r-- | plugins/NotesAndReminders/src/reminders.cpp | 21 |
1 files changed, 1 insertions, 20 deletions
diff --git a/plugins/NotesAndReminders/src/reminders.cpp b/plugins/NotesAndReminders/src/reminders.cpp index a139f25aa0..d17d7d2643 100644 --- a/plugins/NotesAndReminders/src/reminders.cpp +++ b/plugins/NotesAndReminders/src/reminders.cpp @@ -875,7 +875,6 @@ static bool GetTriggerTime(CCtrlCombo &pCombo, ULONGLONG savedLi, SYSTEMTIME &pD int n = pCombo.GetCurSel();
if (n != -1) {
// use preset value
-preset_value:;
if (IsRelativeCombo(pCombo)) {
ULONGLONG li;
SystemTimeToFileTime(&pDate, (FILETIME*)&li);
@@ -919,28 +918,10 @@ preset_value:; return false;
}
- if (IsRelativeCombo(pCombo)) {
- // date has not been changed, the specified time is a time between reftime and reftime+24h
- ULONGLONG li2;
- if (ReformatTimeInput(pCombo, savedLi, h, m, &pDate, &li2))
- return FALSE;
-
- // check if reformatted value is a preset
- if ((n = pCombo.GetCurSel()) != -1)
- goto preset_value;
-
- FileTimeToSystemTime((FILETIME*)&li2, &pDate);
- return true;
- }
-
+ // absolute time (on pDate)
if (ReformatTimeInput(pCombo, savedLi, h, m, &pDate, nullptr))
return false;
- // check if reformatted value is a preset
- if ((n = pCombo.GetCurSel()) != -1)
- goto preset_value;
-
- // absolute time (on pDate)
pDate.wHour = h;
pDate.wMinute = m;
pDate.wSecond = 0;
|