diff options
author | Timo Sirainen <cras@irssi.org> | 2001-03-03 21:11:43 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-03-03 21:11:43 +0000 |
commit | 71188305732d7637bb0a61f51f87567d21e5400f (patch) | |
tree | 90142010a153afe6b5ca6addb634967be21f66a7 /src/fe-common/core/fe-windows.c | |
parent | 7423df6aa8598ba968b70551f64031139c42413e (diff) | |
download | irssi-71188305732d7637bb0a61f51f87567d21e5400f.zip |
window_set_active() doesn't anymore send "window changed" signal if
window is being set to NULL.
Restoring /LAYOUT SAVEd split windows crashed at startup because of
this. Maybe it shouldn't change the window to NULL? Well, at least I
got it to work at all... :)
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1322 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common/core/fe-windows.c')
-rw-r--r-- | src/fe-common/core/fe-windows.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c index ed73a494..c0839470 100644 --- a/src/fe-common/core/fe-windows.c +++ b/src/fe-common/core/fe-windows.c @@ -144,7 +144,8 @@ void window_set_active(WINDOW_REC *window) windows = g_slist_prepend(windows, active_win); } - signal_emit("window changed", 2, active_win, old_window); + if (active_win != NULL) + signal_emit("window changed", 2, active_win, old_window); } void window_change_server(WINDOW_REC *window, void *server) |