From 87c5f14c08fba088484c7925ac0d7b74f6c0521f Mon Sep 17 00:00:00 2001 From: Chris Young Date: Wed, 9 Nov 2011 19:22:49 +0000 Subject: 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 --- amiga/gui.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'amiga') diff --git a/amiga/gui.c b/amiga/gui.c index b9e6ce706..fa007a1b5 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -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)) -- cgit v1.2.3