From: Tom Yu Date: Thu, 9 Aug 2007 22:11:45 +0000 (+0000) Subject: pull up r19628 from trunk X-Git-Tag: kfw-3.2.1-beta1~17 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b4c8ffd6e86ca0b3742ee0449e3d2435ea8d1249;p=krb5.git pull up r19628 from trunk r19628@cathode-dark-space: jaltman | 2007-06-22 14:59:35 -0400 ticket: 5584 If the new credentials window is in the advanced mode and the user tries to switch back to basic mode, we should set the active panel to the identity selector before switching since the basic mode only supports the identity selector panel. ticket: 5584 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@19786 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/windows/identity/ui/newcredwnd.c b/src/windows/identity/ui/newcredwnd.c index e4797d7e8..d1de2eed0 100644 --- a/src/windows/identity/ui/newcredwnd.c +++ b/src/windows/identity/ui/newcredwnd.c @@ -1939,6 +1939,13 @@ static LRESULT nc_handle_wm_nc_notify(HWND hwnd, /* we are switching from basic to advanced or vice versa */ if (d->nc->mode == KHUI_NC_MODE_EXPANDED) { + + if (d->current_panel != 0) { + d->current_panel = 0; + TabCtrl_SetCurSel(d->tab_wnd, 0); + nc_layout_new_cred_window(d); + } + d->nc->mode = KHUI_NC_MODE_MINI; } else { d->nc->mode = KHUI_NC_MODE_EXPANDED;