diff --git a/checkin_notes b/checkin_notes index 18c20e2fd4..69f6553cfa 100644 --- a/checkin_notes +++ b/checkin_notes @@ -10710,3 +10710,11 @@ David 9 Nov 2007 forum_text_search_form.php (deleted) team_manage.php user_search.php + +Charlie 9 Nov 2007 + Mgr SG: Fix SG preferences bug: save "Do work only between" and + "Connect only between" as doubles, not longs so they work + properly. + + clientgui/ + sg_DlgPreferences.cpp diff --git a/clientgui/sg_DlgPreferences.cpp b/clientgui/sg_DlgPreferences.cpp index 51b70e9050..ce8ca8089f 100644 --- a/clientgui/sg_DlgPreferences.cpp +++ b/clientgui/sg_DlgPreferences.cpp @@ -924,8 +924,8 @@ bool CPanelPreferences::SavePreferenceSettings() { global_preferences_working.cpu_times.start_hour = 0; global_preferences_working.cpu_times.end_hour = 0; } else { - m_strWorkBetweenBegin.ToLong((long*)&global_preferences_working.cpu_times.start_hour); - m_strWorkBetweenEnd.ToLong((long*)&global_preferences_working.cpu_times.end_hour); + m_strWorkBetweenBegin.ToDouble(&global_preferences_working.cpu_times.start_hour); + m_strWorkBetweenEnd.ToDouble(&global_preferences_working.cpu_times.end_hour); } global_preferences_override_mask.start_hour = true; global_preferences_override_mask.end_hour = true; @@ -935,8 +935,8 @@ bool CPanelPreferences::SavePreferenceSettings() { global_preferences_working.net_times.start_hour = 0; global_preferences_working.net_times.end_hour = 0; } else { - m_strConnectBetweenBegin.ToLong((long*)&global_preferences_working.net_times.start_hour); - m_strConnectBetweenEnd.ToLong((long*)&global_preferences_working.net_times.end_hour); + m_strConnectBetweenBegin.ToDouble(&global_preferences_working.net_times.start_hour); + m_strConnectBetweenEnd.ToDouble(&global_preferences_working.net_times.end_hour); } global_preferences_override_mask.net_start_hour = true; global_preferences_override_mask.net_end_hour = true;