2197-Fixed bug with making a profile with same name as one just deleted

This commit is contained in:
William Schaefer 2017-02-07 17:53:30 -05:00
parent 5c2706cd17
commit 4701057c57

View File

@ -258,6 +258,7 @@ class ProfileSettingsPanel extends IngestModuleGlobalSettingsPanel implements Op
private void deleteProfileButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteProfileButtonActionPerformed private void deleteProfileButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_deleteProfileButtonActionPerformed
IngestProfile selectedProfile = this.profileList.getSelectedValue(); IngestProfile selectedProfile = this.profileList.getSelectedValue();
this.profilesListModel.removeElement(selectedProfile); this.profilesListModel.removeElement(selectedProfile);
profiles.remove(selectedProfile.getName());
IngestProfile.deleteProfile(selectedProfile); IngestProfile.deleteProfile(selectedProfile);
// Select the first of the remaining set definitions. This will cause // Select the first of the remaining set definitions. This will cause