summaryrefslogtreecommitdiff
path: root/src/fe-common/core/fe-windows.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2001-03-03 21:11:43 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2001-03-03 21:11:43 +0000
commit71188305732d7637bb0a61f51f87567d21e5400f (patch)
tree90142010a153afe6b5ca6addb634967be21f66a7 /src/fe-common/core/fe-windows.c
parent7423df6aa8598ba968b70551f64031139c42413e (diff)
downloadirssi-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.c3
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)