From 341fda113ef3922f14cd97169a6de3687a649a36 Mon Sep 17 00:00:00 2001 From: Konstantin Bulenkov Date: Sat, 3 Aug 2013 17:48:26 +0200 Subject: [PATCH] disable if not on welcome screen --- .../src/com/intellij/ide/actions/OpenProjectAction.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/java/idea-ui/src/com/intellij/ide/actions/OpenProjectAction.java b/java/idea-ui/src/com/intellij/ide/actions/OpenProjectAction.java index c02b1bc16973..b15a94cbe6aa 100644 --- a/java/idea-ui/src/com/intellij/ide/actions/OpenProjectAction.java +++ b/java/idea-ui/src/com/intellij/ide/actions/OpenProjectAction.java @@ -1,5 +1,5 @@ /* - * Copyright 2000-2012 JetBrains s.r.o. + * Copyright 2000-2013 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -77,6 +77,6 @@ public class OpenProjectAction extends AnAction implements DumbAware { @Override public void update(AnActionEvent e) { super.update(e); - e.getPresentation().setVisible(ActionPlaces.WELCOME_SCREEN.equals(e.getPlace())); + e.getPresentation().setEnabledAndVisible(ActionPlaces.WELCOME_SCREEN.equals(e.getPlace())); } } \ No newline at end of file