From: Jeffrey Altman Date: Fri, 3 Aug 2007 13:22:23 +0000 (+0000) Subject: NIM: apply does not update saved values of general identities cfg page X-Git-Tag: krb5-1.7-alpha1~980 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=16193ecb6d1c7718b435d33a87578bc156a2aaa3;p=krb5.git NIM: apply does not update saved values of general identities cfg page The general identities configuration panel failed to update the saved values of the DefaultMonitor, DefaultAllowAutoRenew, and DefaultSticky options after the "Apply" button was pressed. This resulted in the subsequent value changed states being incorrect. This patch saves the values. ticket: new component: windows git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19747 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/windows/identity/ui/cfg_identities_wnd.c b/src/windows/identity/ui/cfg_identities_wnd.c index ebe61e14d..5e3079224 100644 --- a/src/windows/identity/ui/cfg_identities_wnd.c +++ b/src/windows/identity/ui/cfg_identities_wnd.c @@ -494,19 +494,19 @@ write_params_idents(void) { if (cfg_idents.work.monitor != cfg_idents.saved.monitor) { khc_write_int32(csp_cw, L"DefaultMonitor", !!cfg_idents.work.monitor); - cfg_idents.work.monitor = cfg_idents.saved.monitor; + cfg_idents.saved.monitor = cfg_idents.work.monitor; cfg_idents.applied = TRUE; } if (cfg_idents.work.auto_renew != cfg_idents.saved.auto_renew) { khc_write_int32(csp_cw, L"DefaultAllowAutoRenew", !!cfg_idents.work.auto_renew); - cfg_idents.work.auto_renew = cfg_idents.saved.auto_renew; + cfg_idents.saved.auto_renew = cfg_idents.work.auto_renew; cfg_idents.applied = TRUE; } if (cfg_idents.work.sticky != cfg_idents.saved.sticky) { khc_write_int32(csp_cw, L"DefaultSticky", !!cfg_idents.work.sticky); - cfg_idents.work.sticky = cfg_idents.saved.sticky; + cfg_idents.saved.sticky = cfg_idents.work.sticky; cfg_idents.applied = TRUE; }