*** empty log message ***

svn path=/trunk/boinc/; revision=9360
This commit is contained in:
Rom Walton 2006-01-31 07:31:16 +00:00
parent 447e6a3852
commit 1ff4b9088d
2 changed files with 11 additions and 1 deletions

View File

@ -1193,4 +1193,11 @@ Charlie 30 Jan 2006
mac_build/
Info.plist
Rom 31 Jan 2006
- Bug Fix: If the wizard is configured for usernames, do not use the email
address validator on the account info page.
clientgui/
AccountInfoPage.cpp

View File

@ -183,7 +183,8 @@ void CAccountInfoPage::CreateControls()
itemFlexGridSizer64->Add(m_pAccountPasswordRequirmentsStaticCtrl, 0, wxGROW|wxALIGN_CENTER_VERTICAL|wxALL, 5);
// Set validators
m_pAccountEmailAddressCtrl->SetValidator( CValidateEmailAddress(& m_strAccountEmailAddress) );
// m_pAccountEmailAddressCtrl is setup when the OnPageChange event is fired since
// it can be a username or an email address.
m_pAccountPasswordCtrl->SetValidator( wxTextValidator(wxFILTER_ASCII, &m_strAccountPassword) );
m_pAccountConfirmPasswordCtrl->SetValidator( wxTextValidator(wxFILTER_ASCII, &m_strAccountConfirmPassword) );
////@end CAccountInfoPage content construction
@ -354,6 +355,7 @@ void CAccountInfoPage::OnPageChanged( wxWizardExEvent& event ) {
m_pAccountEmailAddressStaticCtrl->SetLabel(
_("Username:")
);
m_pAccountEmailAddressCtrl->SetValidator( wxTextValidator(wxFILTER_ASCII, &m_strAccountEmailAddress) );
} else {
if (m_pAccountManagerInformationStaticCtrl) {
m_pAccountManagerInformationStaticCtrl->SetLabel(
@ -364,6 +366,7 @@ void CAccountInfoPage::OnPageChanged( wxWizardExEvent& event ) {
m_pAccountEmailAddressStaticCtrl->SetLabel(
_("Email address:")
);
m_pAccountEmailAddressCtrl->SetValidator( CValidateEmailAddress(& m_strAccountEmailAddress) );
}
if (((CBOINCBaseWizard*)GetParent())->project_config.min_passwd_length) {