From ee29d1d56c9fcc4e8778e887fe46d26ba8f3ef6f Mon Sep 17 00:00:00 2001 From: Johannes Anderwald Date: Fri, 2 Jun 2006 10:13:17 +0000 Subject: [PATCH] disable timer when user wants to set an alternative date - enables setting time and fixes bug 1398 bug report by Coviti svn path=/trunk/; revision=22173 --- reactos/dll/cpl/timedate/timedate.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reactos/dll/cpl/timedate/timedate.c b/reactos/dll/cpl/timedate/timedate.c index c2ec3fcbe9c..dc1307a8ce5 100644 --- a/reactos/dll/cpl/timedate/timedate.c +++ b/reactos/dll/cpl/timedate/timedate.c @@ -405,6 +405,7 @@ DateTimePageProc(HWND hwndDlg, { case DTN_DATETIMECHANGE: /* Enable the 'Apply' button */ + KillTimer(hwndDlg, ID_TIMER); PropSheet_Changed(GetParent(hwndDlg), hwndDlg); break; } @@ -434,6 +435,7 @@ DateTimePageProc(HWND hwndDlg, case PSN_APPLY: SetLocalSystemTime(hwndDlg); + SetTimer(hwndDlg, ID_TIMER, 1000, NULL); return TRUE; } }