1
0
mirror of https://github.com/irssi/irssi.git synced 2024-10-13 05:03:45 -04: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,8 +109,9 @@ void window_destroy(WINDOW_REC *window)
window->destroying = TRUE; window->destroying = TRUE;
windows = g_slist_remove(windows, window); windows = g_slist_remove(windows, window);
if (active_win == window && windows != NULL) { if (active_win == window) {
active_win = NULL; /* it's corrupted */ active_win = NULL; /* it's corrupted */
if (windows != NULL)
window_set_active(windows->data); window_set_active(windows->data);
} }