From 8f56a856aed84dfac9fcd09c8b6355bf4faecadf Mon Sep 17 00:00:00 2001 From: Dmitry Batkovich Date: Wed, 31 Aug 2016 15:43:30 +0300 Subject: [PATCH] inspection settings: myProfilePanelHolder should be preferred component to focus --- .../codeInspection/ui/header/InspectionToolsConfigurable.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/header/InspectionToolsConfigurable.java b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/header/InspectionToolsConfigurable.java index 7cfc0ee621fa..3f0e5c0341f8 100644 --- a/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/header/InspectionToolsConfigurable.java +++ b/platform/lang-impl/src/com/intellij/profile/codeInspection/ui/header/InspectionToolsConfigurable.java @@ -667,9 +667,7 @@ public abstract class InspectionToolsConfigurable extends BaseConfigurable @Override public JComponent getPreferredFocusedComponent() { - final InspectionProfileImpl inspectionProfile = myProfiles.getProfilesComboBox().getSelectedProfile(); - SingleInspectionProfilePanel panel = getProfilePanel(inspectionProfile); - return panel == null ? null : panel.getPreferredFocusedComponent(); + return myProfilePanelHolder; } private void showProfile(InspectionProfileImpl profile) {