From a046ae4d5dad7219ee9ad31c96df670d893bd783 Mon Sep 17 00:00:00 2001 From: irengrig Date: Fri, 26 Aug 2011 13:23:57 +0400 Subject: [PATCH] git log action for default project fixed --- .../openapi/vcs/changes/ui/ChangesBrowserChangeNode.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesBrowserChangeNode.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesBrowserChangeNode.java index 734fcc66d6d1..ccd89ed776a2 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesBrowserChangeNode.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesBrowserChangeNode.java @@ -106,7 +106,7 @@ public class ChangesBrowserChangeNode extends ChangesBrowserNode impleme private void appendSwitched(final ChangesBrowserNodeRenderer renderer) { final VirtualFile virtualFile = ChangesUtil.getFilePath(getUserObject()).getVirtualFile(); - if (virtualFile != null) { + if (virtualFile != null && ! myProject.isDefault()) { String branch = ChangeListManager.getInstance(myProject).getSwitchedBranch(virtualFile); if (branch != null) { renderer.append(" [switched to " + branch + "]", SimpleTextAttributes.REGULAR_ATTRIBUTES);