MGR: Prevent the 'back' button from being enabled on the project and account manager info pages.

This commit is contained in:
Rom Walton 2015-05-01 12:31:44 -04:00
parent d4e737c8e8
commit d3d57cae99
1 changed files with 9 additions and 1 deletions

View File

@ -432,7 +432,15 @@ bool CWizardAttach::HasNextPage( wxWizardPageEx* page )
bool CWizardAttach::HasPrevPage( wxWizardPageEx* page )
{
if ((page == m_ProjectWelcomePage) || (page == m_CompletionPage) || (page == m_CompletionErrorPage))
bool bNoPrevPageDetected = false;
bNoPrevPageDetected |= (page == m_ProjectWelcomePage);
bNoPrevPageDetected |= (page == m_ProjectInfoPage);
bNoPrevPageDetected |= (page == m_AccountManagerInfoPage);
bNoPrevPageDetected |= (page == m_CompletionPage);
bNoPrevPageDetected |= (page == m_CompletionErrorPage);
if (bNoPrevPageDetected)
return false;
return true;
}