Empty the list of new central repo hash sets when the settings are saved

This commit is contained in:
Ann Priestman 2017-11-03 10:26:39 -04:00
parent 4cf2c33f0f
commit d44efea5b3

View File

@ -325,8 +325,10 @@ public final class HashLookupSettingsPanel extends IngestModuleGlobalSettingsPan
} else if (unindexed.size() > 1) { } else if (unindexed.size() > 1) {
showInvalidIndex(true, unindexed); showInvalidIndex(true, unindexed);
} }
try { try {
hashSetManager.save(); hashSetManager.save();
newCentralRepoIndices.clear();
} catch (HashDbManager.HashDbManagerException ex) { } catch (HashDbManager.HashDbManagerException ex) {
SwingUtilities.invokeLater(() -> { SwingUtilities.invokeLater(() -> {
JOptionPane.showMessageDialog(null, Bundle.HashLookupSettingsPanel_saveFail_message(), Bundle.HashLookupSettingsPanel_saveFail_title(), JOptionPane.ERROR_MESSAGE); JOptionPane.showMessageDialog(null, Bundle.HashLookupSettingsPanel_saveFail_message(), Bundle.HashLookupSettingsPanel_saveFail_title(), JOptionPane.ERROR_MESSAGE);