summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2016-02-14 14:13:24 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2016-02-14 14:13:24 +0000
commit0c55edfcb9c1a3f0fd3c1eea7c500360240e61f5 (patch)
treef609ce8f59c081c522a8c94450d7e043770332a4
parent71cdc461a6e358bfe83d089f94a31c7f15e25378 (diff)
downloadnetsurf-0c55edfcb9c1a3f0fd3c1eea7c500360240e61f5.tar.gz
netsurf-0c55edfcb9c1a3f0fd3c1eea7c500360240e61f5.tar.bz2
When we unlock a public screen, don't attempt to unlock it again.
We lock the screen to stop it closing before we open our window, and unlock it when the window is open (the window is a sufficient lock). However we were not resetting the flag indicating the screen was still locked, so it was getting unlocked twice.
-rw-r--r--amiga/gui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/amiga/gui.c b/amiga/gui.c
index 15a5e9d64..7efe1ed05 100644
--- a/amiga/gui.c
+++ b/amiga/gui.c
@@ -4377,7 +4377,10 @@ gui_window_create(struct browser_window *bw,
glob = &browserglob;
- if(locked_screen) UnlockPubScreen(NULL,scrn);
+ if(locked_screen) {
+ UnlockPubScreen(NULL,scrn);
+ locked_screen = FALSE;
+ }
ami_schedule(0, ami_gui_search_ico_refresh, NULL);