From dcfb30d32d76facf64710a9672f4d774b33d7748 Mon Sep 17 00:00:00 2001 From: Kirill Likhodedov Date: Thu, 26 Jul 2012 16:04:13 +0400 Subject: [PATCH] FileHistoryPanelImpl: disable "Get" for directories, since it doesn't work for any VCS anyway. Relates to IDEA-53116 --- .../intellij/openapi/vcs/history/FileHistoryPanelImpl.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java index a11fed484150..0d486101cae8 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/history/FileHistoryPanelImpl.java @@ -946,9 +946,7 @@ public class FileHistoryPanelImpl extends PanelWithActionsAndCloseButton { @Override public boolean isEnabled() { - if (!super.isEnabled()) return false; - if (!myHistorySession.isContentAvailable(getFirstSelectedRevision())) return false; - return true; + return super.isEnabled() && myHistorySession.isContentAvailable(getFirstSelectedRevision()) && !myFilePath.isDirectory(); } protected void executeAction(AnActionEvent e) {