Test cleanup
Safer this way
This commit is contained in:
parent
66e1a26b33
commit
140b3ddbb8
|
@ -510,10 +510,10 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
isMaillinglist = shared.safeConfigGetBoolean(
|
isMaillinglist = shared.safeConfigGetBoolean(
|
||||||
toAddress, 'mailinglist')
|
toAddress, 'mailinglist')
|
||||||
|
|
||||||
if tab == 'messages':
|
if treeWidget == self.ui.treeWidgetYourIdentities:
|
||||||
if isChan:
|
if isChan:
|
||||||
continue
|
continue
|
||||||
elif tab == 'chan':
|
elif treeWidget == self.ui.treeWidgetChans:
|
||||||
if not isChan:
|
if not isChan:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
@ -531,7 +531,7 @@ class MyForm(settingsmixin.SMainWindow):
|
||||||
total += cnt
|
total += cnt
|
||||||
if toaddress in db and folder in db[toaddress]:
|
if toaddress in db and folder in db[toaddress]:
|
||||||
db[toaddress][folder] = cnt
|
db[toaddress][folder] = cnt
|
||||||
if tab == "messages":
|
if treeWidget == self.ui.treeWidgetYourIdentities:
|
||||||
db[None] = {}
|
db[None] = {}
|
||||||
db[None]["inbox"] = total
|
db[None]["inbox"] = total
|
||||||
db[None]["new"] = total
|
db[None]["new"] = total
|
||||||
|
|
Loading…
Reference in New Issue
Block a user