simplify: no need to special case Exit
This commit is contained in:
@@ -885,10 +885,6 @@ void OptionRow::SetExitText( CString sExitText )
|
|||||||
}
|
}
|
||||||
|
|
||||||
void OptionRow::Reload()
|
void OptionRow::Reload()
|
||||||
{
|
|
||||||
switch( GetRowType() )
|
|
||||||
{
|
|
||||||
case OptionRow::RowType_Normal:
|
|
||||||
{
|
{
|
||||||
// TODO: Nothing uses this yet and it causes skips when changing options.
|
// TODO: Nothing uses this yet and it causes skips when changing options.
|
||||||
//if( m_pHand->m_Def.m_bExportOnChange )
|
//if( m_pHand->m_Def.m_bExportOnChange )
|
||||||
@@ -899,7 +895,7 @@ void OptionRow::Reload()
|
|||||||
//}
|
//}
|
||||||
|
|
||||||
if( !m_pHand->Reload() )
|
if( !m_pHand->Reload() )
|
||||||
break;
|
return;
|
||||||
|
|
||||||
ChoicesChanged();
|
ChoicesChanged();
|
||||||
|
|
||||||
@@ -919,14 +915,6 @@ void OptionRow::Reload()
|
|||||||
|
|
||||||
UpdateEnabledDisabled();
|
UpdateEnabledDisabled();
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
case OptionRow::RowType_Exit:
|
|
||||||
// nothing to do
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
ASSERT(0);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void OptionRow::HandleMessage( const CString& sMessage )
|
void OptionRow::HandleMessage( const CString& sMessage )
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user