mirror of
git://github.com/kovidgoyal/calibre.git
synced 2026-05-09 11:14:02 +02:00
Fix #740890 (Tag editor shouldn't add empty tags)
This commit is contained in:
parent
5c06f567d9
commit
a20d3a2ae8
1 changed files with 2 additions and 0 deletions
|
|
@ -122,6 +122,8 @@ def add_tag(self):
|
|||
tags = unicode(self.add_tag_input.text()).split(',')
|
||||
for tag in tags:
|
||||
tag = tag.strip()
|
||||
if not tag:
|
||||
continue
|
||||
for item in self.available_tags.findItems(tag, Qt.MatchFixedString):
|
||||
self.available_tags.takeItem(self.available_tags.row(item))
|
||||
if tag not in self.tags:
|
||||
|
|
|
|||
Loading…
Reference in a new issue