diff options
author | Timo Sirainen <cras@irssi.org> | 2002-12-23 08:36:25 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2002-12-23 08:36:25 +0000 |
commit | d5bc95bc22e92868d30e6bd0272a993dbf08a59e (patch) | |
tree | f680f9ab9123ab95415e731fbe7234a51cde5af5 /src/fe-common/core/themes.c | |
parent | ab91c843bd8d4bdb1130f32719f8a908dcf15fbc (diff) | |
download | irssi-d5bc95bc22e92868d30e6bd0272a993dbf08a59e.zip |
Make sure we aren't using a destroyed theme
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3073 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/themes.c')
-rw-r--r-- | src/fe-common/core/themes.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fe-common/core/themes.c b/src/fe-common/core/themes.c index e7ad151c..fe5cfe18 100644 --- a/src/fe-common/core/themes.c +++ b/src/fe-common/core/themes.c @@ -848,6 +848,8 @@ THEME_REC *theme_load(const char *setname) if (oldtheme != NULL && theme != NULL) { theme_destroy(oldtheme); + if (current_theme == oldtheme) + current_theme = theme; window_themes_update(); } |