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 {