summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-12-23 08:36:25 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-12-23 08:36:25 +0000
commitd5bc95bc22e92868d30e6bd0272a993dbf08a59e (patch)
treef680f9ab9123ab95415e731fbe7234a51cde5af5 /src
parentab91c843bd8d4bdb1130f32719f8a908dcf15fbc (diff)
downloadirssi-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')
-rw-r--r--src/fe-common/core/themes.c2
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();
}