mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 18:54:09 -04:00
Manage tags dialog: Fix setting a tag to empty raises an unhandled error. Fixes #1446318 [Delete tag from Tag Browser](https://bugs.launchpad.net/calibre/+bug/1446318)
Merge branch 'master' of https://github.com/cbhaley/calibre
This commit is contained in:
commit
dc95e13780
@ -41,7 +41,7 @@ class NameTableWidgetItem(QTableWidgetItem):
|
|||||||
|
|
||||||
def setText(self, txt):
|
def setText(self, txt):
|
||||||
self.current_value = txt
|
self.current_value = txt
|
||||||
QTableWidgetItem.setText(txt)
|
QTableWidgetItem.setText(self, txt)
|
||||||
|
|
||||||
def __ge__(self, other):
|
def __ge__(self, other):
|
||||||
return sort_key(unicode(self.text())) >= sort_key(unicode(other.text()))
|
return sort_key(unicode(self.text())) >= sort_key(unicode(other.text()))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user