summaryrefslogtreecommitdiff
path: root/src/gui/curses/gui-curses-window.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-01-04 23:19:26 +0100
committerSebastien Helleu <flashcode@flashtux.org>2009-01-04 23:19:26 +0100
commitba7bb638349c8139aa1cd0e0a7892bcca5936969 (patch)
tree73ea5c355eddd497d8093ced6d6e632122d1d333 /src/gui/curses/gui-curses-window.c
parentdf557d2ee61152d236fb215995d0b8838f0a802f (diff)
downloadweechat-ba7bb638349c8139aa1cd0e0a7892bcca5936969.zip
Fix crash when creating bar, rename options in bar structure
Diffstat (limited to 'src/gui/curses/gui-curses-window.c')
-rw-r--r--src/gui/curses/gui-curses-window.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/curses/gui-curses-window.c b/src/gui/curses/gui-curses-window.c
index 3bef625ce..e125fb121 100644
--- a/src/gui/curses/gui-curses-window.c
+++ b/src/gui/curses/gui-curses-window.c
@@ -923,7 +923,7 @@ gui_window_refresh_windows ()
for (ptr_bar = gui_bars; ptr_bar; ptr_bar = ptr_bar->next_bar)
{
- if (CONFIG_INTEGER(ptr_bar->type) == GUI_BAR_TYPE_ROOT)
+ if (CONFIG_INTEGER(ptr_bar->options[GUI_BAR_OPTION_TYPE]) == GUI_BAR_TYPE_ROOT)
{
gui_bar_window_calculate_pos_size (ptr_bar->bar_window, NULL);
gui_bar_window_create_win (ptr_bar->bar_window);