Skip to content

Commit

Permalink
Refactor code to allow duplicate removal
Browse files Browse the repository at this point in the history
  • Loading branch information
samj1912 committed Jan 15, 2017
1 parent d3fcb3a commit e7d7ba8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions picard/ui/metadatabox.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,11 +331,11 @@ def contextMenuEvent(self, event):

def add_to_preserved_tags(self, name, preserved_tags):
preserved_tags.append(name)
config.setting['preserved_tags'] = ", ".join((uniqify(preserved_tags)))
config.setting['preserved_tags'] = ", ".join(uniqify(preserved_tags))

def remove_from_preserved_tags(self, name, preserved_tags):
preserved_tags.remove(name)
config.setting['preserved_tags'] = ", ".join((uniqify(preserved_tags)))
preserved_tags = filter(lambda x: x != name, preserved_tags)
config.setting['preserved_tags'] = ", ".join(uniqify(preserved_tags))

def edit_tag(self, tag):
EditTagDialog(self.parent, tag).exec_()
Expand Down

0 comments on commit e7d7ba8

Please sign in to comment.