From 3ef4f28f4e7ed8942d8b8092877f0e82c0ec1104 Mon Sep 17 00:00:00 2001 From: Sergey Simonchik Date: Mon, 3 Feb 2014 16:09:07 +0400 Subject: [PATCH] cleanup: http://crucible.labs.intellij.net/cru/CR-IC-4132#c21654 --- platform/util/src/com/intellij/util/ui/UIUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/util/src/com/intellij/util/ui/UIUtil.java b/platform/util/src/com/intellij/util/ui/UIUtil.java index 1b3ad87b4a6d..b939c924968d 100644 --- a/platform/util/src/com/intellij/util/ui/UIUtil.java +++ b/platform/util/src/com/intellij/util/ui/UIUtil.java @@ -356,9 +356,9 @@ public class UIUtil { public static void setEnabled(Component component, boolean enabled, boolean recursively) { component.setEnabled(enabled); - if (component instanceof JComboBox) { + if (component instanceof JComboBox && isUnderAquaLookAndFeel()) { // On Mac JComboBox instances have children: com.apple.laf.AquaComboBoxButton and javax.swing.CellRendererPane. - // Disabling these children results in ugly UI. See WEB-10733 + // Disabling these children results in ugly UI: WEB-10733 return; } if (component instanceof JLabel) {