kfw fix: restructure low ticket warning popup code to workaround mfc bug
authorTom Yu <tlyu@mit.edu>
Mon, 12 Dec 2011 20:45:55 +0000 (20:45 +0000)
committerTom Yu <tlyu@mit.edu>
Mon, 12 Dec 2011 20:45:55 +0000 (20:45 +0000)
commit5475caa3bb52e96ed07a67004b5ce9943785a3e4
tree14a879e9afd8a12f024edf0f643507cd3ae3d9b7
parentef6d0436ffaf224bcbc81ceee7fc91416d8b5f3c
kfw fix: restructure low ticket warning popup code to workaround mfc bug

mfc bug causes assertions when dialog is generated from
within PreTranslateMessages() (MSG input param points to a global
variable which is corrupted in the dialog message loop).  So we need
to instead PostMessage() to cause the popup later.
Also fixed logic to cause warning dialog to actually be modal as intended
when the leash window is not minimized.

Signed-off-by: Kevin Wasserman <kevin.wasserman@painless-security.com>
ticket: 7050

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@25561 dc483132-0cff-0310-8789-dd5450dbe970
src/windows/leash/LeashView.cpp
src/windows/leash/LeashView.h