Minor cleanup.

This commit is contained in:
Jeff Young 2022-08-08 22:20:41 +01:00
parent f695ae5522
commit 2e2264cb74
1 changed files with 1 additions and 3 deletions

View File

@ -307,8 +307,6 @@ void PAGED_DIALOG::UpdateResetButton( int aPage )
{
wxWindow* panel = m_treebook->GetPage( aPage );
wxCHECK( panel, /* void */ );
// Enable the reset button only if the page is re-settable
if( m_resetButton )
{
@ -317,7 +315,7 @@ void PAGED_DIALOG::UpdateResetButton( int aPage )
m_resetButton->SetLabel( wxString::Format( _( "Reset %s to Defaults" ),
m_treebook->GetPageText( aPage ) ) );
m_resetButton->SetToolTip( panel->GetHelpTextAtPoint( wxPoint( -INT_MAX, INT_MAX ),
wxHelpEvent::Origin_Unknown ) );
wxHelpEvent::Origin_Unknown ) );
m_resetButton->Enable( true );
}
else