call UpdateEnabledDisabled directly

This commit is contained in:
Glenn Maynard
2006-02-03 10:02:14 +00:00
parent 8c7b5747f5
commit 11373b5c3b
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -118,8 +118,8 @@ void ScreenMiniMenu::AfterChangeValueOrRow( PlayerNumber pn )
if( mr.pfnEnabled() ) if( mr.pfnEnabled() )
optrow.GetRowDef().m_vEnabledForPlayers.insert( GAMESTATE->m_MasterPlayerNumber ); optrow.GetRowDef().m_vEnabledForPlayers.insert( GAMESTATE->m_MasterPlayerNumber );
} }
m_pRows[i]->UpdateEnabledDisabled();
} }
UpdateEnabledDisabled();
} }
void ScreenMiniMenu::ImportOptions( int r, const vector<PlayerNumber> &vpns ) void ScreenMiniMenu::ImportOptions( int r, const vector<PlayerNumber> &vpns )
+1 -1
View File
@@ -707,8 +707,8 @@ void ScreenOptions::AfterChangeValueOrRow( PlayerNumber pn )
{ {
m_pRows[r]->PositionIcons( pn ); m_pRows[r]->PositionIcons( pn );
m_pRows[r]->SetRowHasFocus( pn, GAMESTATE->IsHumanPlayer(pn) && m_iCurrentRow[pn] == (int)r ); m_pRows[r]->SetRowHasFocus( pn, GAMESTATE->IsHumanPlayer(pn) && m_iCurrentRow[pn] == (int)r );
m_pRows[r]->UpdateEnabledDisabled();
} }
UpdateEnabledDisabled();
if( SHOW_SCROLL_BAR ) if( SHOW_SCROLL_BAR )
{ {