mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #1643364 [Better handling of non-existent tags](https://bugs.launchpad.net/calibre/+bug/1643364)
This commit is contained in:
parent
786fba9366
commit
c3730a21a7
@ -131,6 +131,8 @@ class TagEditor(QDialog, Ui_TagEditor):
|
||||
def apply_tags(self, item=None):
|
||||
items = self.available_tags.selectedItems() if item is None else [item]
|
||||
rows = [self.available_tags.row(i) for i in items]
|
||||
if not rows:
|
||||
return
|
||||
row = max(rows)
|
||||
tags = self._get_applied_tags_box_contents()
|
||||
for item in items:
|
||||
@ -227,6 +229,7 @@ class TagEditor(QDialog, Ui_TagEditor):
|
||||
def save_state(self):
|
||||
gprefs['tag_editor_geometry'] = bytearray(self.saveGeometry())
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
from calibre.gui2 import Application
|
||||
from calibre.library import db
|
||||
|
Loading…
x
Reference in New Issue
Block a user