inspection settings: myProfilePanelHolder should be preferred component to focus

This commit is contained in:
Dmitry Batkovich
2016-08-31 15:44:06 +03:00
parent acf8879769
commit 8f56a856ae
@@ -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) {