summaryrefslogtreecommitdiff
path: root/src/fe-text/mainwindows.c
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2003-07-09 21:46:08 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2003-07-09 21:46:08 +0000
commitae5b5f38bdd045df0a1dae78138b6b805dc934b1 (patch)
tree4c6258e7dd1a7eebef36ef630ff27671851675ad /src/fe-text/mainwindows.c
parent2b00fd58b74f8a964c3c58e12bdd2a4466a83a43 (diff)
downloadirssi-ae5b5f38bdd045df0a1dae78138b6b805dc934b1.zip
Crashfix when sometimes closing a split window.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3123 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-text/mainwindows.c')
-rw-r--r--src/fe-text/mainwindows.c7
1 files 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;
}
}