OptionRow::Reload doesn't take an OptionRowDefinition.
Implement Reload() explicitly, so we can clearly short- circuit for static rows. Fix up ScreenOptionsEditCourseEntry (broken during the course of things).
This commit is contained in:
@@ -877,7 +877,7 @@ void OptionRow::SetExitText( CString sExitText )
|
||||
bt->SetText( sExitText );
|
||||
}
|
||||
|
||||
void OptionRow::Reload( const OptionRowDefinition &def )
|
||||
void OptionRow::Reload()
|
||||
{
|
||||
switch( GetRowType() )
|
||||
{
|
||||
@@ -895,10 +895,8 @@ void OptionRow::Reload( const OptionRowDefinition &def )
|
||||
// ExportOptions( vpns, bRowHasFocus );
|
||||
//}
|
||||
|
||||
if( m_pHand == NULL )
|
||||
m_pHand->m_Def = def;
|
||||
else
|
||||
m_pHand->Reload();
|
||||
if( !m_pHand->Reload() )
|
||||
break;
|
||||
m_pHand->m_Def = m_pHand->m_Def;
|
||||
ASSERT( !m_pHand->m_Def.m_vsChoices.empty() );
|
||||
|
||||
@@ -953,7 +951,7 @@ void OptionRow::Reload( const OptionRowDefinition &def )
|
||||
|
||||
void OptionRow::HandleMessage( const CString& sMessage )
|
||||
{
|
||||
Reload( m_pHand->m_Def );
|
||||
Reload();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user