diff options
author | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-11-09 19:22:49 +0000 |
---|---|---|
committer | Chris Young <chris@unsatisfactorysoftware.co.uk> | 2011-11-09 19:22:49 +0000 |
commit | 87c5f14c08fba088484c7925ac0d7b74f6c0521f (patch) | |
tree | 07413922b394d64f91676281cf38706fe90ed1ea /amiga | |
parent | dcbafe6b87d33dd32042499db83cac1f0bac6f82 (diff) | |
download | netsurf-87c5f14c08fba088484c7925ac0d7b74f6c0521f.tar.gz netsurf-87c5f14c08fba088484c7925ac0d7b74f6c0521f.tar.bz2 |
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
Diffstat (limited to 'amiga')
-rwxr-xr-x | amiga/gui.c | 7 |
1 files changed, 4 insertions, 3 deletions
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)) |