Unread count for trash

MarkUnread assumed all folders are inbox.
This commit is contained in:
mailchuck 2015-11-01 09:01:34 +01:00
parent db7374a825
commit 372722c979
No known key found for this signature in database
GPG Key ID: B6311FA753FBF089

View File

@ -2932,9 +2932,9 @@ class MyForm(QtGui.QMainWindow):
"?," * len(inventoryHashesToMarkUnread))[:-1], *inventoryHashesToMarkUnread)
if modified == 1:
# performance optimisation
self.propagateUnreadCount(self.getCurrentAccount())
self.propagateUnreadCount(self.getCurrentAccount(), self.getCurrentFolder())
else:
self.propagateUnreadCount(self.getCurrentAccount(), "inbox", self.getCurrentTreeWidget(), 0)
self.propagateUnreadCount(self.getCurrentAccount(), self.getCurrentFolder(), self.getCurrentTreeWidget(), 0)
# tableWidget.selectRow(currentRow + 1)
# This doesn't de-select the last message if you try to mark it unread, but that doesn't interfere. Might not be necessary.
# We could also select upwards, but then our problem would be with the topmost message.