From d5bc95bc22e92868d30e6bd0272a993dbf08a59e Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Mon, 23 Dec 2002 08:36:25 +0000 Subject: [PATCH] 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 --- src/fe-common/core/themes.c | 2 ++ 1 file changed, 2 insertions(+) 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(); }