diff options
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-x | amiga/gui.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index e42ca3121..518ecea51 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -1027,10 +1027,13 @@ void ami_switch_tab(struct gui_window_2 *gwin,bool redraw) if(redraw) { - gui_window_set_scroll(gwin->bw->window,gwin->bw->window->scrollx,gwin->bw->window->scrolly); - browser_window_update(gwin->bw,false); + if((gwin->bw->window->scrollx) || (gwin->bw->window->scrolly)) + { + gui_window_set_scroll(gwin->bw->window,gwin->bw->window->scrollx,gwin->bw->window->scrolly); + } + if(gwin->bw->current_content) gui_window_set_url(gwin->bw->window,gwin->bw->current_content->url); } |