From ae5b5f38bdd045df0a1dae78138b6b805dc934b1 Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Wed, 9 Jul 2003 21:46:08 +0000 Subject: [PATCH] Crashfix when sometimes closing a split window. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3123 dbcabf3a-b0e7-0310-adc4-f8d773084564 --- src/fe-text/mainwindows.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/fe-text/mainwindows.c b/src/fe-text/mainwindows.c index 03a82705..0bede313 100644 --- a/src/fe-text/mainwindows.c +++ b/src/fe-text/mainwindows.c @@ -154,11 +154,8 @@ void mainwindow_change_active(MAIN_WINDOW_REC *mainwin, WINDOW_REC *rec = tmp->data; if (rec != skip_window) { - if (WINDOW_MAIN(rec) == mainwin) { - window_set_active(rec); - return; - } - other = rec; + other = rec; + break; } }