set up option rows in BeginScreen, not Init. fixes deleted profiles not disappearing, etc

This commit is contained in:
Glenn Maynard
2005-08-13 05:02:54 +00:00
parent 18a1459284
commit 02665b4bcc
@@ -109,7 +109,15 @@ void ScreenOptionsManageProfiles::Init()
{
ScreenOptions::Init();
SetInputMode( INPUTMODE_SHARE_CURSOR );
}
void ScreenOptionsManageProfiles::BeginScreen()
{
vector<OptionRowDefinition> vDefs;
for( unsigned i = 0; i < m_OptionRowHandlers.size(); ++i )
delete m_OptionRowHandlers[i];
m_OptionRowHandlers.clear();
OptionRowDefinition def;
def.m_layoutType = LAYOUT_SHOW_ALL_IN_ROW;
@@ -150,11 +158,6 @@ void ScreenOptionsManageProfiles::Init()
ScreenOptions::InitMenu( vDefs, m_OptionRowHandlers );
SetInputMode( INPUTMODE_SHARE_CURSOR );
}
void ScreenOptionsManageProfiles::BeginScreen()
{
ScreenOptions::BeginScreen();
// select the last chosen profile