From 0c55edfcb9c1a3f0fd3c1eea7c500360240e61f5 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sun, 14 Feb 2016 14:13:24 +0000 Subject: 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. --- amiga/gui.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'amiga') 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); -- cgit v1.2.3