Simulate changing views when the REFRESH action is run and when credentials are updated
authorKevin Koch <kpkoch@mit.edu>
Thu, 9 Aug 2007 14:52:15 +0000 (14:52 +0000)
committerKevin Koch <kpkoch@mit.edu>
Thu, 9 Aug 2007 14:52:15 +0000 (14:52 +0000)
This makes the symptoms go away but does not solve whatever the underlying problem is.

Ticket: 5604
Tags: pullup
Target_Version: 1.6.3

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19770 dc483132-0cff-0310-8789-dd5450dbe970

src/windows/identity/ui/mainwnd.c
src/windows/identity/ui/timer.c

index f96bee91876428b5c6cfefd1c8bb1b240476ccba..81d26673d21660f577f82c6701330ce10b2cdbaf 100644 (file)
@@ -305,6 +305,7 @@ khm_main_wnd_proc(HWND hwnd,
         case KHUI_ACTION_VIEW_REFRESH:
             khm_cred_refresh();
             InvalidateRect(khm_hwnd_main_cred, NULL, FALSE);
+            khui_action_trigger(KHUI_ACTION_LAYOUT_RELOAD, NULL);   /* Hack causes refresh button to work in Basic view. */
             return 0;
 
         case KHUI_ACTION_PASSWD_ID:
index 9a270c3eed57c289e2460917384dd5faffc83beb..8ed514d23c66380d4a6f6ad55d2a1fdc9e72dcfb 100644 (file)
@@ -861,6 +861,8 @@ tmr_cred_apply_proc(khm_handle cred, void * rock) {
     if (ident)
         kcdb_identity_release(ident);
 
+    khui_action_trigger(KHUI_ACTION_LAYOUT_RELOAD, NULL);   /* Hack causes updates to be displayed. */
+
     return KHM_ERROR_SUCCESS;
 }