Fall back if PREFSMAN->m_sTheme.GetDefault() is not selectable.
This commit is contained in:
@@ -353,6 +353,11 @@ void ThemeManager::SwitchThemeAndLanguage( const RString &sThemeName_, const RSt
|
|||||||
if( !IsThemeSelectable(sThemeName) )
|
if( !IsThemeSelectable(sThemeName) )
|
||||||
sThemeName = PREFSMAN->m_sTheme.GetDefault();
|
sThemeName = PREFSMAN->m_sTheme.GetDefault();
|
||||||
|
|
||||||
|
if( !IsThemeSelectable(sThemeName) )
|
||||||
|
sThemeName = SpecialFiles::BASE_THEME_NAME;
|
||||||
|
|
||||||
|
ASSERT( IsThemeSelectable(sThemeName) );
|
||||||
|
|
||||||
/* We havn't actually loaded the theme yet, so we can't check whether sLanguage
|
/* We havn't actually loaded the theme yet, so we can't check whether sLanguage
|
||||||
* exists. Just check for empty. */
|
* exists. Just check for empty. */
|
||||||
if( sLanguage.empty() )
|
if( sLanguage.empty() )
|
||||||
|
|||||||
Reference in New Issue
Block a user