- MGR: Enforce the 0..10 day limit on the connect interval for the

advanced preferences dialog.  At some point we should rename
        it.

    clientgui/
        DlgAdvPreferences.cpp

svn path=/trunk/boinc/; revision=25988
This commit is contained in:
Rom Walton 2012-08-07 17:21:58 +00:00
parent 26d702789c
commit 8a5053e670
2 changed files with 17 additions and 3 deletions

View File

@ -5308,3 +5308,11 @@ David 6 Aug 2012
client/
work_fetch.cpp
Rom 7 Aug 2012
- MGR: Enforce the 0..10 day limit on the connect interval for the
advanced preferences dialog. At some point we should rename
it.
clientgui/
DlgAdvPreferences.cpp

View File

@ -583,7 +583,6 @@ bool CDlgAdvPreferences::ValidateInput() {
node = node->GetNext();
}
//net page
buffer = m_txtNetEveryDayStart->GetValue();
if(!IsValidTimeValue(buffer)) {
ShowErrorMessage(invMsgTime,m_txtNetEveryDayStart);
@ -595,14 +594,21 @@ bool CDlgAdvPreferences::ValidateInput() {
ShowErrorMessage(invMsgTime,m_txtNetEveryDayStop);
return false;
}
//limit additional days from 0 to 10
//limit additional days from 0 to 10
double td;
m_txtNetConnectInterval->GetValue().ToDouble(&td);
if(td>10.0 || td < 0.0) {
ShowErrorMessage(invMsgFloat,m_txtNetConnectInterval);
return false;
}
m_txtNetAdditionalDays->GetValue().ToDouble(&td);
if(td>10.0 || td < 0.0) {
ShowErrorMessage(invMsgFloat,m_txtNetAdditionalDays);
return false;
}
//all text ctrls in net special time panel
//all text ctrls in net special time panel
children = m_panelNetSpecialTimes->GetChildren();
node = children.GetFirst();