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.
This commit is contained in:
Chris Young 2016-02-14 14:13:24 +00:00
parent 71cdc461a6
commit 0c55edfcb9

View File

@ -4377,7 +4377,10 @@ gui_window_create(struct browser_window *bw,
glob = &browserglob; 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); ami_schedule(0, ami_gui_search_ico_refresh, NULL);