From 8decf15503deec98d86b687909f7e58e255f0652 Mon Sep 17 00:00:00 2001 From: Aleksey Pivovarov Date: Wed, 9 May 2018 17:46:26 +0300 Subject: [PATCH] diff: show window with all local changes when "Default" changelist node is hidden follow-up: a494ed906374e7d4f7df10ece914582ebb6a6996 cf4792aed2acc9c13f670a3fb7183fb16dde0a2e --- .../com/intellij/openapi/vcs/changes/ui/ChangesListView.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesListView.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesListView.java index 2e9eaecbc7ea..4c9a625c7e73 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesListView.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/ChangesListView.java @@ -8,6 +8,7 @@ import com.intellij.openapi.actionSystem.*; import com.intellij.openapi.fileChooser.actions.VirtualFileDeleteProvider; import com.intellij.openapi.fileEditor.OpenFileDescriptor; import com.intellij.openapi.project.Project; +import com.intellij.openapi.util.registry.Registry; import com.intellij.openapi.vcs.FilePath; import com.intellij.openapi.vcs.FileStatus; import com.intellij.openapi.vcs.VcsDataKeys; @@ -371,6 +372,9 @@ public class ChangesListView extends Tree implements TypeSafeDataProvider, DnDAw if (node instanceof ChangesBrowserChangeListNode) { return ((ChangesBrowserChangeListNode)node).getAllChangesUnder(); } + if (node == getRoot() && Registry.is("vcs.skip.single.default.changelist")) { + return getRoot().getAllChangesUnder(); + } node = (DefaultMutableTreeNode)node.getParent(); } return null;