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

Fix refresh of hidden bars (patch #6837)

This commit is contained in:
Sebastien Helleu
2009-06-12 11:22:00 +02:00
parent ae23fb0b46
commit ed47fff730
+15 -18
View File
@@ -447,33 +447,30 @@ gui_bar_item_update (const char *item_name)
for (ptr_bar = gui_bars; ptr_bar; ptr_bar = ptr_bar->next_bar)
{
if (!CONFIG_BOOLEAN(ptr_bar->options[GUI_BAR_OPTION_HIDDEN]))
gui_bar_get_item_index (ptr_bar, item_name, &index_item, &index_subitem);
if ((index_item >= 0) && (index_subitem >= 0))
{
gui_bar_get_item_index (ptr_bar, item_name, &index_item, &index_subitem);
if ((index_item >= 0) && (index_subitem >= 0))
if (ptr_bar->bar_window)
{
if (ptr_bar->bar_window)
ptr_bar->bar_window->items_refresh_needed[index_item][index_subitem] = 1;
}
else
{
for (ptr_window = gui_windows; ptr_window;
ptr_window = ptr_window->next_window)
{
ptr_bar->bar_window->items_refresh_needed[index_item][index_subitem] = 1;
}
else
{
for (ptr_window = gui_windows; ptr_window;
ptr_window = ptr_window->next_window)
for (ptr_bar_window = ptr_window->bar_windows;
ptr_bar_window;
ptr_bar_window = ptr_bar_window->next_bar_window)
{
for (ptr_bar_window = ptr_window->bar_windows;
ptr_bar_window;
ptr_bar_window = ptr_bar_window->next_bar_window)
if (ptr_bar_window->bar == ptr_bar)
{
if (ptr_bar_window->bar == ptr_bar)
{
ptr_bar_window->items_refresh_needed[index_item][index_subitem] = 1;
}
ptr_bar_window->items_refresh_needed[index_item][index_subitem] = 1;
}
}
}
gui_bar_ask_refresh (ptr_bar);
}
gui_bar_ask_refresh (ptr_bar);
}
}
}