From b4e3ce1166f4acb4cb81d877c6072e2a7046712e Mon Sep 17 00:00:00 2001 From: Seth Hillbrand Date: Wed, 24 May 2023 08:54:16 -0700 Subject: [PATCH] Revert "Reset button applies to resolved page, not lazy page holder." This reverts commit 232d0e8b6b06fc8c609323e91e9c7e877f21e0ab. --- common/widgets/paged_dialog.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/widgets/paged_dialog.cpp b/common/widgets/paged_dialog.cpp index f9ad4c005a..ceb78ff91e 100644 --- a/common/widgets/paged_dialog.cpp +++ b/common/widgets/paged_dialog.cpp @@ -330,7 +330,7 @@ void PAGED_DIALOG::SetError( const wxString& aMessage, wxWindow* aPage, wxWindow void PAGED_DIALOG::UpdateResetButton( int aPage ) { - wxWindow* panel = m_treebook->ResolvePage( aPage ); + wxWindow* panel = m_treebook->GetPage( aPage ); // Enable the reset button only if the page is re-settable if( m_resetButton ) @@ -454,7 +454,7 @@ void PAGED_DIALOG::onResetButton( wxCommandEvent& aEvent ) return; // NB: dynamic_cast doesn't work over Kiway - wxWindow* panel = m_treebook->ResolvePage( sel ); + wxWindow* panel = m_treebook->GetPage( sel ); if( panel ) {