mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
6fae77e7f4
commit
2adc821a67
@ -196,6 +196,7 @@ class TagEditor(QDialog, Ui_TagEditor):
|
|||||||
tag = tag.strip()
|
tag = tag.strip()
|
||||||
if not tag:
|
if not tag:
|
||||||
continue
|
continue
|
||||||
|
if self.all_tags_model.rowCount():
|
||||||
for index in self.all_tags_model.match(self.all_tags_model.index(0), Qt.ItemDataRole.DisplayRole, tag, -1,
|
for index in self.all_tags_model.match(self.all_tags_model.index(0), Qt.ItemDataRole.DisplayRole, tag, -1,
|
||||||
Qt.MatchFlag.MatchFixedString | Qt.MatchFlag.MatchCaseSensitive | Qt.MatchFlag.MatchWrap):
|
Qt.MatchFlag.MatchFixedString | Qt.MatchFlag.MatchCaseSensitive | Qt.MatchFlag.MatchWrap):
|
||||||
self.all_tags_model.removeRow(index.row())
|
self.all_tags_model.removeRow(index.row())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user