From fa235511f9cdbd29cf1cc1756b39612d34eee790 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Thu, 24 Nov 2016 22:11:53 +0300 Subject: [PATCH] [vcs-log] when filtering by regex, "Match Case" option is visible but disabled when only Mercurial roots are present --- .../intellij/vcs/log/ui/actions/EnableMatchCaseAction.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/actions/EnableMatchCaseAction.java b/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/actions/EnableMatchCaseAction.java index ab35a99a0a79..ab2de6e446f1 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/actions/EnableMatchCaseAction.java +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/ui/actions/EnableMatchCaseAction.java @@ -64,8 +64,9 @@ public class EnableMatchCaseAction extends ToggleAction implements DumbAware { Collection providers = ContainerUtil.newLinkedHashSet(ui.getDataPack().getLogProviders().values()); List supported = ContainerUtil.filter(providers, p -> VcsLogProperties.get(p, VcsLogProperties.CASE_INSENSITIVE_REGEX)); - e.getPresentation().setEnabledAndVisible(!supported.isEmpty()); - if (providers.size() == supported.size()) { + e.getPresentation().setVisible(true); + e.getPresentation().setEnabled(!supported.isEmpty()); + if (providers.size() == supported.size() || supported.isEmpty()) { e.getPresentation().setText(MATCH_CASE); } else {