mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 21:16:50 +03:00
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:
parent
dcbafe6b87
commit
87c5f14c08
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user