mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-133722 Inspection settings: editing profile description is applied only once
This commit is contained in:
+1
-5
@@ -472,7 +472,6 @@ public abstract class InspectionToolsConfigurable extends BaseConfigurable
|
||||
|
||||
@Override
|
||||
public void apply() throws ConfigurationException {
|
||||
final Map<Profile, SingleInspectionProfilePanel> panels = new LinkedHashMap<Profile, SingleInspectionProfilePanel>();
|
||||
for (final Profile inspectionProfile : myPanels.keySet()) {
|
||||
if (myDeletedProfiles.remove(inspectionProfile)) {
|
||||
deleteProfile(getProfilePanel(inspectionProfile).getSelectedProfile());
|
||||
@@ -480,12 +479,9 @@ public abstract class InspectionToolsConfigurable extends BaseConfigurable
|
||||
else {
|
||||
final SingleInspectionProfilePanel panel = getProfilePanel(inspectionProfile);
|
||||
panel.apply();
|
||||
final ModifiableModel profile = panel.getSelectedProfile();
|
||||
panels.put(profile, panel);
|
||||
}
|
||||
}
|
||||
myPanels.clear();
|
||||
myPanels.putAll(panels);
|
||||
reset();
|
||||
}
|
||||
|
||||
private SingleInspectionProfilePanel getProfilePanel(Profile inspectionProfile) {
|
||||
|
||||
Reference in New Issue
Block a user