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:
parent
5d1e89fa77
commit
8a7bc3b667
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user