diff options
author | Timo Sirainen <cras@irssi.org> | 2001-02-10 02:13:13 +0000 |
---|---|---|
committer | cras <cras@dbcabf3a-b0e7-0310-adc4-f8d773084564> | 2001-02-10 02:13:13 +0000 |
commit | 54870f51fd4ac89c27b25c0fac1a45eee216e044 (patch) | |
tree | 0cec0ff0c9411934e3c527dc89976de56714162a /src/fe-common | |
parent | e4f7d55ce941bf33b1d23d7c21e6beb9fb69aba0 (diff) | |
download | irssi-54870f51fd4ac89c27b25c0fac1a45eee216e044.zip |
window_item_set_active(): window->active_server was set wrong if there
was multiple items in window from different servers.
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@1195 dbcabf3a-b0e7-0310-adc4-f8d773084564
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/window-items.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/fe-common/core/window-items.c b/src/fe-common/core/window-items.c index bbc036a6..77ed89dd 100644 --- a/src/fe-common/core/window-items.c +++ b/src/fe-common/core/window-items.c @@ -115,7 +115,8 @@ void window_item_set_active(WINDOW_REC *window, WI_ITEM_REC *item) if (window->active != item) { window->active = item; - if (item != NULL) window_change_server(window, window->active_server); + if (item != NULL && window->active_server != item->server) + window_change_server(window, item->server); signal_emit("window item changed", 2, window, item); } } |