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:
parent
a7c364addb
commit
688c39045c
@ -136,8 +136,10 @@ void window_set_active(WINDOW_REC *window)
|
||||
|
||||
old_window = active_win;
|
||||
active_win = window;
|
||||
windows = g_slist_remove(windows, active_win);
|
||||
windows = g_slist_prepend(windows, active_win);
|
||||
if (active_win != NULL) {
|
||||
windows = g_slist_remove(windows, active_win);
|
||||
windows = g_slist_prepend(windows, active_win);
|
||||
}
|
||||
|
||||
signal_emit("window changed", 2, active_win, old_window);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user