summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorTimo Sirainen <cras@irssi.org>2002-04-12 19:41:51 +0000
committercras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564>2002-04-12 19:41:51 +0000
commitdfed19a3c8d69dc3f0bac4afbf068868b2bc1be4 (patch)
tree1f559f4a666e109461cbfe093198915fbe1e26d6 /src/fe-common
parentb1a5d317faf87ab043edaa4e9236b8df9cc8f40e (diff)
downloadirssi-dfed19a3c8d69dc3f0bac4afbf068868b2bc1be4.zip
window_change_server() : don't change server if it's being disconnected.
fixes a crash with multiple channels being in one windows. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2667 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/fe-windows.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fe-common/core/fe-windows.c b/src/fe-common/core/fe-windows.c
index 38dd22fe..f24ddb7b 100644
--- a/src/fe-common/core/fe-windows.c
+++ b/src/fe-common/core/fe-windows.c
@@ -160,6 +160,9 @@ void window_set_active(WINDOW_REC *window)
void window_change_server(WINDOW_REC *window, void *server)
{
+ if (server != NULL && SERVER(server)->disconnected)
+ return;
+
window->active_server = server;
signal_emit("window server changed", 2, window, server);
}