Set the theme to the default one if the user-defined one is invalid

Related to #1283
This commit is contained in:
David Capello 2016-10-28 11:25:46 -03:00
parent e12c533270
commit 2366721a82

View File

@ -203,7 +203,8 @@ void SkinTheme::onRegenerate()
Console::showException(e); Console::showException(e);
// We can continue, as we've already loaded the default theme // We can continue, as we've already loaded the default theme
// anyway... // anyway. Here we restore the setting to its default value.
pref.theme.selected(pref.theme.selected.defaultValue());
} }
} }
} }