Test cleanup

Safer this way
This commit is contained in:
mailchuck 2016-01-24 18:25:33 +01:00
parent fa73cfd53e
commit 6503782958
Signed by untrusted user who does not match committer: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -511,10 +511,10 @@ class MyForm(settingsmixin.SMainWindow):
isMaillinglist = shared.safeConfigGetBoolean(
toAddress, 'mailinglist')
if tab == 'messages':
if treeWidget == self.ui.treeWidgetYourIdentities:
if isChan:
continue
elif tab == 'chan':
elif treeWidget == self.ui.treeWidgetChans:
if not isChan:
continue
@ -532,7 +532,7 @@ class MyForm(settingsmixin.SMainWindow):
total += cnt
if toaddress in db and folder in db[toaddress]:
db[toaddress][folder] = cnt
if tab == "messages":
if treeWidget == self.ui.treeWidgetYourIdentities:
db[None] = {}
db[None]["inbox"] = total
db[None]["new"] = total