Fix #8558 (Tag editor issues with version 0.7.42)

This commit is contained in:
Kovid Goyal 2011-01-24 12:46:12 -07:00
parent 2fad5774e7
commit e1ebc4946f

View File

@ -16,7 +16,7 @@ class TagEditor(QDialog, Ui_TagEditor):
self.setupUi(self) self.setupUi(self)
self.db = db self.db = db
self.index = db.row(id_) self.index = db.row(id_) if id_ is not None else None
if self.index is not None: if self.index is not None:
tags = self.db.tags(self.index) tags = self.db.tags(self.index)
else: else: