diff options
Diffstat (limited to 'src/fe-common/core/themes.c')
-rw-r--r-- | src/fe-common/core/themes.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index b5b3fd3f..6a8c42c4 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -1115,9 +1115,13 @@ static void change_theme(const char *name, int verbose) static void read_settings(void) { const char *theme; + int len; theme = settings_get_str("theme"); - if (strcmp(current_theme->name, theme) != 0) + len = strlen(current_theme->name); + if (strcmp(current_theme->name, theme) != 0 && + (strncmp(current_theme->name, theme, len) != 0 || + strcmp(theme+len, ".theme") != 0)) change_theme(theme, TRUE); } |