From 140b3ddbb84fa6e38d1f9c1dc961e637337652d9 Mon Sep 17 00:00:00 2001 From: mailchuck Date: Sun, 24 Jan 2016 18:25:33 +0100 Subject: [PATCH] Test cleanup Safer this way --- src/bitmessageqt/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bitmessageqt/__init__.py b/src/bitmessageqt/__init__.py index 286bc75a..3c5eaacc 100644 --- a/src/bitmessageqt/__init__.py +++ b/src/bitmessageqt/__init__.py @@ -510,10 +510,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 @@ -531,7 +531,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