1
0
mirror of https://github.com/irssi/irssi.git synced 2024-12-04 14:46:39 -05:00

don't leave active_win corrupted if last window is killed.

git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2751 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2002-05-04 19:44:25 +00:00 committed by cras
parent 5d1e89fa77
commit 8a7bc3b667

View File

@ -109,9 +109,10 @@ void window_destroy(WINDOW_REC *window)
window->destroying = TRUE;
windows = g_slist_remove(windows, window);
if (active_win == window && windows != NULL) {
active_win = NULL; /* it's corrupted */
window_set_active(windows->data);
if (active_win == window) {
active_win = NULL; /* it's corrupted */
if (windows != NULL)
window_set_active(windows->data);
}
while (window->items != NULL)