From 040aeb21486d11997254bda70009fe67447e70e7 Mon Sep 17 00:00:00 2001 From: Denis Fokin Date: Fri, 17 Jan 2014 15:07:04 +0400 Subject: [PATCH] IDEA-119521 Adding RSA keys dialog becomes unclickable if it is displayed when test connection is in progress --- .../com/intellij/openapi/progress/util/ProgressWindow.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/platform/platform-impl/src/com/intellij/openapi/progress/util/ProgressWindow.java b/platform/platform-impl/src/com/intellij/openapi/progress/util/ProgressWindow.java index a060fa84bfb4..fb2808ea887b 100644 --- a/platform/platform-impl/src/com/intellij/openapi/progress/util/ProgressWindow.java +++ b/platform/platform-impl/src/com/intellij/openapi/progress/util/ProgressWindow.java @@ -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); }