1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 02:03:13 +02:00

core: disable paste detection and confirmation if bar item "input_paste" is not used in a visible bar (task #12327)

This commit is contained in:
Nils Görs
2012-12-05 19:04:07 +01:00
committed by Sebastien Helleu
parent dd99a1cf2c
commit 03cbb1c8f6
5 changed files with 30 additions and 12 deletions
+2 -1
View File
@@ -1842,7 +1842,8 @@ gui_bar_create_default_input ()
char *buf;
/* search an input_text item */
if (!gui_bar_item_used_in_at_least_one_bar (gui_bar_item_names[GUI_BAR_ITEM_INPUT_TEXT], 1))
if (!gui_bar_item_used_in_at_least_one_bar (gui_bar_item_names[GUI_BAR_ITEM_INPUT_TEXT],
1, 0))
{
ptr_bar = gui_bar_search (GUI_BAR_DEFAULT_NAME_INPUT);
if (ptr_bar)