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

If window_set_active() was called with NULL window (shouldn't happen

ofter/ever?) irssi added NULL window to windows list.


git-svn-id: http://svn.irssi.org/repos/irssi/trunk@778 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
Timo Sirainen 2000-10-22 12:33:47 +00:00 committed by cras
parent a7c364addb
commit 688c39045c

View File

@ -136,8 +136,10 @@ void window_set_active(WINDOW_REC *window)
old_window = active_win; old_window = active_win;
active_win = window; active_win = window;
if (active_win != NULL) {
windows = g_slist_remove(windows, active_win); windows = g_slist_remove(windows, active_win);
windows = g_slist_prepend(windows, active_win); windows = g_slist_prepend(windows, active_win);
}
signal_emit("window changed", 2, active_win, old_window); signal_emit("window changed", 2, active_win, old_window);
} }