Revert "Reset button applies to resolved page, not lazy page holder."
This reverts commit 232d0e8b6b
.
This commit is contained in:
parent
1958cafbdf
commit
b4e3ce1166
|
@ -330,7 +330,7 @@ void PAGED_DIALOG::SetError( const wxString& aMessage, wxWindow* aPage, wxWindow
|
||||||
|
|
||||||
void PAGED_DIALOG::UpdateResetButton( int aPage )
|
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
|
// Enable the reset button only if the page is re-settable
|
||||||
if( m_resetButton )
|
if( m_resetButton )
|
||||||
|
@ -454,7 +454,7 @@ void PAGED_DIALOG::onResetButton( wxCommandEvent& aEvent )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
// NB: dynamic_cast doesn't work over Kiway
|
// NB: dynamic_cast doesn't work over Kiway
|
||||||
wxWindow* panel = m_treebook->ResolvePage( sel );
|
wxWindow* panel = m_treebook->GetPage( sel );
|
||||||
|
|
||||||
if( panel )
|
if( panel )
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue