From 2366721a826d42a401c63388fde6405db026d42f Mon Sep 17 00:00:00 2001 From: David Capello Date: Fri, 28 Oct 2016 11:25:46 -0300 Subject: [PATCH] Set the theme to the default one if the user-defined one is invalid Related to #1283 --- src/app/ui/skin/skin_theme.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/ui/skin/skin_theme.cpp b/src/app/ui/skin/skin_theme.cpp index eb4ebcf8c..7c8a8930e 100644 --- a/src/app/ui/skin/skin_theme.cpp +++ b/src/app/ui/skin/skin_theme.cpp @@ -203,7 +203,8 @@ void SkinTheme::onRegenerate() Console::showException(e); // 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()); } } }