summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2009-05-31 15:17:35 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2009-05-31 15:17:35 +0000
commit0ccf0e0d973d0d50263d315bebfca1d0eb8e96e2 (patch)
treeb521777fba62bb2a9a72cbb7a64d859e1f511a0c
parent8e8d36156ad7d8ad14782c396cf5ed7d3bea811f (diff)
downloadnetsurf-0ccf0e0d973d0d50263d315bebfca1d0eb8e96e2.tar.gz
netsurf-0ccf0e0d973d0d50263d315bebfca1d0eb8e96e2.tar.bz2
Fix minor problems with tab switching
svn path=/trunk/netsurf/; revision=7668
-rwxr-xr-xamiga/gui.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index dd56e7241..2c60bc5c5 100755
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -1423,6 +1423,7 @@ void ami_switch_tab(struct gui_window_2 *gwin,bool redraw)
browser_window_update(gwin->bw,false);
gui_window_set_scroll(gwin->bw->window,gwin->bw->window->scrollx,gwin->bw->window->scrolly);
+ gwin->redraw_scroll = false;
if(gwin->bw->current_content)
browser_window_refresh_url_bar(gwin->bw,gwin->bw->current_content->url,
@@ -2819,7 +2820,7 @@ void gui_window_new_content(struct gui_window *g)
{
struct content *c;
- if(g && g->shared && g->shared->bw)
+ if(g && g->shared && g->shared->bw && g->shared->bw->current_content)
c = g->shared->bw->current_content;
else return;