From 30de663a1e847f2e2950507dd1c66ec40f1fc5b2 Mon Sep 17 00:00:00 2001 From: Jeffrey Altman Date: Fri, 22 Jun 2007 18:59:35 +0000 Subject: [PATCH] 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/trunk@19628 dc483132-0cff-0310-8789-dd5450dbe970 --- src/windows/identity/ui/newcredwnd.c | 7 +++++++ 1 file changed, 7 insertions(+) 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; -- 2.26.2