mirror of
https://github.com/irssi/irssi.git
synced 2025-02-02 15:08:01 -05:00
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
This commit is contained in:
parent
ab91c843bd
commit
d5bc95bc22
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user