From 359fd192c362f17ee28ca9019bf5d90c21669c6b Mon Sep 17 00:00:00 2001 From: owen Date: Tue, 15 Mar 2005 20:34:08 +0000 Subject: [PATCH] Add protection against multiple Change Settings dialogues. git-svn-id: svn://svn.tartarus.org/sgt/putty@5508 cda61777-01e9-0310-a592-d414129be87e --- windows/window.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/windows/window.c b/windows/window.c index 066c4a45..9b810278 100644 --- a/windows/window.c +++ b/windows/window.c @@ -108,6 +108,7 @@ static void *backhandle; static struct unicode_data ucsdata; static int session_closed; +static int reconfiguring; static const struct telnet_special *specials; static int n_specials; @@ -1978,6 +1979,11 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, Config prev_cfg; int init_lvl = 1; + if (reconfiguring) + break; + else + reconfiguring = TRUE; + GetWindowText(hwnd, cfg.wintitle, sizeof(cfg.wintitle)); prev_cfg = cfg; @@ -2114,6 +2120,7 @@ static LRESULT CALLBACK WndProc(HWND hwnd, UINT message, InvalidateRect(hwnd, NULL, TRUE); reset_window(init_lvl); net_pending_errors(); + reconfiguring = FALSE; } break; case IDM_COPYALL: -- 2.11.0