From 59ef43a4a5a5a17b0870577b88310684d4751895 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Fri, 30 Sep 2005 18:46:33 +0000 Subject: [PATCH] *** empty log message *** svn path=/trunk/boinc/; revision=8367 --- clientgui/wizards/AccountInfoPage.cpp | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/clientgui/wizards/AccountInfoPage.cpp b/clientgui/wizards/AccountInfoPage.cpp index b09b41b498..155a12212d 100644 --- a/clientgui/wizards/AccountInfoPage.cpp +++ b/clientgui/wizards/AccountInfoPage.cpp @@ -307,10 +307,18 @@ void CAccountInfoPage::OnPageChanging( wxWizardExEvent& event ) unsigned int iMinLength = ((CBOINCBaseWizard*)GetParent())->project_config.min_passwd_length; wxString strPassword = m_AccountPasswordCtrl->GetValue(); if (strPassword.Length() < iMinLength) { - strMessage.Printf( - _("The minimum password length for this project is %d. Please choose a different password."), - iMinLength - ); + if (IS_ATTACHTOPROJECTWIZARD()) { + strMessage.Printf( + _("The minimum password length for this project is %d. Please choose a different password."), + iMinLength + ); + } + if (IS_ACCOUNTMANAGERWIZARD()) { + strMessage.Printf( + _("The minimum password length for this account manager is %d. Please choose a different password."), + iMinLength + ); + } bDisplayError = true; }