*** empty log message ***

svn path=/trunk/boinc/; revision=12351
This commit is contained in:
Charlie Fenton 2007-04-12 09:29:40 +00:00
parent eaa534bbd7
commit e9b1a8f700
2 changed files with 16 additions and 6 deletions

View File

@ -3455,3 +3455,11 @@ Charlie 11 Apr 2007
mac_build/
boinc.xcodeproj/
project.pbxproj
Charlie 12 Apr 2007
- MGR: Fix bug in SimpleGUI prefs: it wasn't resetting the
<run_if_user_active> tag when changing "Do work when user
idle" override from "0 (Run Always)" to an idle time value.
clientgui/
sg_DlgPreferences.cpp

View File

@ -946,12 +946,14 @@ bool CPanelPreferences::SavePreferenceSettings() {
// Do work after computer is idle for:
m_strWorkWhenIdle.ToDouble((double*)&global_preferences_override.idle_time_to_run);
if (0 == global_preferences_override.idle_time_to_run) {
global_preferences_override.run_if_user_active = true;
global_preferences_mask.run_if_user_active = true;
} else {
global_preferences_mask.idle_time_to_run = true;
}
if (0 == global_preferences_override.idle_time_to_run) {
global_preferences_override.run_if_user_active = true;
global_preferences_mask.idle_time_to_run = false;
} else {
global_preferences_override.run_if_user_active = false;
global_preferences_mask.idle_time_to_run = true;
}
global_preferences_mask.run_if_user_active = true;
return true;
}