Unread count refresh on change

This commit is contained in:
mailchuck 2016-01-24 21:26:42 +01:00
parent 573ef9211f
commit 58dc091536
Signed by untrusted user who does not match committer: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -46,7 +46,11 @@ class AccountMixin (object):
self.address = str(address)
def setUnreadCount(self, cnt):
if hasattr(self, "unreadCount") and self.unreadCount == int(cnt):
return
self.unreadCount = int(cnt)
if isinstance(self, QtGui.QTreeWidgetItem):
self.emitDataChanged()
def setEnabled(self, enabled):
self.isEnabled = enabled