Fix SG preferences "Do work only between" and "Connect only between"

svn path=/trunk/boinc/; revision=14133
This commit is contained in:
Charlie Fenton 2007-11-10 02:05:53 +00:00
parent bf227ea8b1
commit 9214583c37
2 changed files with 12 additions and 4 deletions

View File

@ -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

View File

@ -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;