would prevent a user opening Change Settings if they'd cancelled a previous
Change Settings.
git-svn-id: svn://svn.tartarus.org/sgt/putty@5539
cda61777-01e9-0310-a592-
d414129be87e
static struct unicode_data ucsdata;
static int session_closed;
static struct unicode_data ucsdata;
static int session_closed;
-static int reconfiguring;
+static int reconfiguring = FALSE;
static const struct telnet_special *specials;
static int n_specials;
static const struct telnet_special *specials;
static int n_specials;
{
Config prev_cfg;
int init_lvl = 1;
{
Config prev_cfg;
int init_lvl = 1;
GetWindowText(hwnd, cfg.wintitle, sizeof(cfg.wintitle));
prev_cfg = cfg;
GetWindowText(hwnd, cfg.wintitle, sizeof(cfg.wintitle));
prev_cfg = cfg;
- if (!do_reconfig(hwnd, back ? back->cfg_info(backhandle) : 0))
+ reconfig_result =
+ !do_reconfig(hwnd, back ? back->cfg_info(backhandle) : 0);
+ reconfiguring = FALSE;
+ if (!reconfig_result)
InvalidateRect(hwnd, NULL, TRUE);
reset_window(init_lvl);
net_pending_errors();
InvalidateRect(hwnd, NULL, TRUE);
reset_window(init_lvl);
net_pending_errors();
}
break;
case IDM_COPYALL:
}
break;
case IDM_COPYALL: