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:
Kovid Goyal 2015-04-21 08:13:27 +05:30
commit dc95e13780

View File

@ -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()))