fix wrong title and icon showing at startup

This commit is contained in:
Chris Danford
2003-05-25 22:39:23 +00:00
parent bb089f467e
commit 55c3f4758e
3 changed files with 7 additions and 1 deletions
+5 -1
View File
@@ -156,7 +156,11 @@ void ScreenAppearanceOptions::ExportOptions()
int iSelectedTheme = m_iSelectedOption[0][AO_THEME];
CString sNewTheme = m_OptionRow[AO_THEME].choices[iSelectedTheme];
THEME->SwitchTheme( sNewTheme );
if( THEME->GetCurThemeName() != sNewTheme )
{
THEME->SwitchTheme( sNewTheme );
ApplyGraphicOptions(); // reset graphics to apply new window title and icon
}
TEXTUREMAN->DoDelayedDelete(); // delete all textures that don't have references
int iSelectedSkin = m_iSelectedOption[0][AO_SKIN];