mirror of
https://github.com/irssi/irssi.git
synced 2024-11-03 04:27:19 -05:00
$window->command() changed active window temporarily to wanted one and then
back to old one. This wasn't very good idea if the old window was destroyed by the command.. git-svn-id: http://svn.irssi.org/repos/irssi/trunk@2613 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
e0c8f5d502
commit
2a1b4c0a17
@ -158,7 +158,8 @@ CODE:
|
||||
old = active_win;
|
||||
active_win = window;
|
||||
perl_command(cmd, window->active_server, window->active);
|
||||
active_win = old;
|
||||
if (g_slist_find(windows, old) != NULL)
|
||||
active_win = old;
|
||||
|
||||
void
|
||||
window_item_add(window, item, automatic)
|
||||
|
Loading…
Reference in New Issue
Block a user