From d3d57cae991fb04edd70c455b1fbc5948d278934 Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Fri, 1 May 2015 12:31:44 -0400 Subject: [PATCH] MGR: Prevent the 'back' button from being enabled on the project and account manager info pages. --- clientgui/WizardAttach.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/clientgui/WizardAttach.cpp b/clientgui/WizardAttach.cpp index c4b7ec7148..7e957cfd21 100644 --- a/clientgui/WizardAttach.cpp +++ b/clientgui/WizardAttach.cpp @@ -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; }