IDEA-119521 Adding RSA keys dialog becomes unclickable if it is displayed when test connection is in progress

This commit is contained in:
Denis Fokin
2014-01-17 15:07:49 +04:00
parent d0d85af581
commit 040aeb2148
@@ -613,6 +613,12 @@ public class ProgressWindow extends BlockingProgressIndicator implements Disposa
? new MyDialogWrapper(myParentWindow, myShouldShowCancel)
: new MyDialogWrapper(myProject, myShouldShowCancel);
myPopup.setUndecorated(true);
if (SystemInfo.isAppleJvm) {
// With Apple JDK we look for MacMessage parent by the window title.
// As far as progress windows are undecorated we set the window
// component name as a title to keep it unique.
myPopup.setTitle(myPopup.getWindow().getName());
}
if (myPopup.getPeer() instanceof DialogWrapperPeerImpl) {
((DialogWrapperPeerImpl)myPopup.getPeer()).setAutoRequestFocus(false);
}