diff options
-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)) |