EA-83059 - IAE: PopupComponent$DialogPopupWrapper.<init>
[idea/community.git] / platform / platform-impl / src / com / intellij / ui / popup / AbstractPopup.java
index 7f9eb7e6c12b1b69f7b83bd02cefb9348be8a1d6..7f7429e0f56af30669981ac1bf3267a859d93881 100644 (file)
@@ -445,7 +445,7 @@ public class AbstractPopup implements JBPopup {
       window = KeyboardFocusManager.getCurrentKeyboardFocusManager().getFocusedWindow();
     }
 
-    if (window != null) {
+    if (window != null && window.isShowing()) {
       showInCenterOf(window);
     }
   }