Newly arrives messages sorting

There could be cases where newly arrives message is not added correctly.
It won't necessarily go to the top, that depends on the sort.
This commit is contained in:
mailchuck 2016-01-25 23:52:11 +01:00 committed by Peter Surda
parent 3bde549e5c
commit 89752faceb

View File

@ -975,9 +975,14 @@ class MyForm(settingsmixin.SMainWindow):
def addMessageListItem(self, tableWidget, items):
sortingEnabled = tableWidget.isSortingEnabled()
if sortingEnabled:
for i in range(len(items)):
tableWidget.setItem(0, i, items[i])
if sortingEnabled:
def addMessageListItemSent(self, tableWidget, toAddress, fromAddress, subject, status, ackdata, lastactiontime):
acct = accountClass(fromAddress)