Unread count refresh on change

This commit is contained in:
mailchuck 2016-01-24 21:26:42 +01:00 committed by Peter Surda
parent 8f1e753cf0
commit 185d212cb2

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