2541-Keywordlists rename no longer deletes names with unchanged name

This commit is contained in:
William Schaefer 2017-04-12 12:23:49 -04:00
parent bca5a67aeb
commit ff55fd7412

View File

@ -114,7 +114,8 @@ final class GlobalListSettingsPanel extends javax.swing.JPanel implements Option
null,
null,
currentKeywordList.getName());
if (listName == null || listName.trim().equals("")) {
//if the name is null, empty, or unchanged return without changing anything
if (listName == null || listName.trim().equals("") || listName.equals(currentKeywordList.getName())) {
return shouldAdd;
}