summaryrefslogtreecommitdiff
path: root/src/fe-text
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2003-11-17 18:13:17 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2003-11-17 18:13:17 +0000
commit4405092282ddcb825f215bd3fb40dfd36544df25 (patch)
tree7368bca27056a4dc0cf58eef30ea224bde106299 /src/fe-text
parent38b026b62fc590b8b3bf7594be1bcfc6e874385e (diff)
downloadirssi-4405092282ddcb825f215bd3fb40dfd36544df25.zip
potential crashfix
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3173 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text')
-rw-r--r--src/fe-text/mainwindows.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c
index ab481718..03fdeda8 100644
--- a/src/fe-text/mainwindows.c
+++ b/src/fe-text/mainwindows.c
@@ -159,9 +159,9 @@ void mainwindow_change_active(MAIN_WINDOW_REC *mainwin,
}
}
- /* no more non-sticky windows, remove main window */
window_set_active(other);
- mainwindow_destroy(mainwin);
+ if (mainwindows->next != NULL)
+ mainwindow_destroy(mainwin);
}
void mainwindows_recreate(void)