Update the title of the initial tab, even when the tab bar is hidden (ensures the

correct title will be present if it is made visible)

svn path=/trunk/netsurf/; revision=13138
This commit is contained in:
Chris Young 2011-11-09 19:22:49 +00:00
parent dcbafe6b87
commit 87c5f14c08

View File

@ -3109,7 +3109,7 @@ void gui_window_set_title(struct gui_window *g, const char *title)
utf8title = ami_utf8_easy((char *)title);
if(g->tab_node && (g->shared->tabs > 1))
if(g->tab_node && (g->shared->tabs >= 1))
{
node = g->tab_node;
@ -3137,8 +3137,9 @@ void gui_window_set_title(struct gui_window *g, const char *title)
g->shared->win, NULL, TRUE);
}
GetAttr(CLICKTAB_Current, g->shared->objects[GID_TABS],
(ULONG *)&cur_tab);
if(g->shared->tabs > 1)
GetAttr(CLICKTAB_Current, g->shared->objects[GID_TABS],
(ULONG *)&cur_tab);
}
if((cur_tab == g->tab) || (g->shared->tabs <= 1))