no run configuration popup in dumb mode on Resume invocation (EA-65013 - INRE: FileBa...
authorpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 11:53:04 +0000 (12:53 +0100)
committerpeter <peter@jetbrains.com>
Wed, 18 Feb 2015 15:18:43 +0000 (16:18 +0100)
platform/xdebugger-impl/src/com/intellij/xdebugger/impl/actions/ResumeAction.java

index 011c41b209e156896566ecce54b0b96f84f37df9..3d935d39dc7f0be937b764d4e4b6d0147e66301a 100644 (file)
@@ -20,6 +20,7 @@ import com.intellij.openapi.actionSystem.ActionPlaces;
 import com.intellij.openapi.actionSystem.AnActionEvent;
 import com.intellij.openapi.actionSystem.CommonDataKeys;
 import com.intellij.openapi.project.DumbAware;
+import com.intellij.openapi.project.DumbService;
 import com.intellij.openapi.project.Project;
 import com.intellij.xdebugger.AbstractDebuggerSession;
 import com.intellij.xdebugger.impl.DebuggerSupport;
@@ -50,7 +51,10 @@ public class ResumeAction extends XDebuggerActionBase implements DumbAware {
   @Override
   public void actionPerformed(AnActionEvent e) {
     if (!performWithHandler(e)) {
-      new ChooseDebugConfigurationPopupAction().actionPerformed(e);
+      Project project = getEventProject(e);
+      if (project != null && !DumbService.isDumb(project)) {
+        new ChooseDebugConfigurationPopupAction().actionPerformed(e);
+      }
     }
   }