1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-25 04:16:38 +02:00

Fix signal "buffer_switch" (was sent twice when switching buffer) (bug #31158)

This commit is contained in:
Sebastien Helleu
2010-10-05 21:48:54 +02:00
parent 9605a8726f
commit bd39c8fa85
2 changed files with 8 additions and 3 deletions
+2
View File
@@ -14,6 +14,8 @@ Version 0.3.4 (under dev!)
highlight words in buffer
* core: use similar behaviour for keys bound to local or global history
(bug #30759)
* core: fix signal "buffer_switch" (was sent twice when switching buffer)
(bug #31158)
* api: add priority for hooks (task #10550)
* api: add new functions: hashtable_get_string, hook_info_hashtable,
info_get_hashtable
+6 -3
View File
@@ -577,9 +577,12 @@ gui_window_switch_to_buffer (struct t_gui_window *window,
}
gui_input_move_to_buffer (old_buffer, window->buffer);
hook_signal_send ("buffer_switch",
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
if (old_buffer != window->buffer)
{
hook_signal_send ("buffer_switch",
WEECHAT_HOOK_SIGNAL_POINTER, buffer);
}
}
/*