Skip to content

Commit 5d92ede

Browse files
committed
Call self.window().updateStatusBar directly in blacklist
1 parent 9976659 commit 5d92ede

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

src/bitmessageqt/blacklist.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from bmconfigparser import BMConfigParser
66
from dialogs import AddAddressDialog
77
from helper_sql import sqlExecute, sqlQuery
8-
from queues import UISignalQueue
98
from retranslateui import RetranslateMixin
109
from tr import _translate
1110
from uisignaler import UISignaler
@@ -75,21 +74,17 @@ def click_pushButtonAddBlacklist(self):
7574
sql = '''INSERT INTO whitelist VALUES (?,?,?)'''
7675
sqlExecute(sql, *t)
7776
else:
78-
UISignalQueue.put((
79-
'updateStatusBar',
77+
self.window().updateStatusBar(
8078
_translate(
8179
"MainWindow",
8280
"Error: You cannot add the same address to your"
8381
" list twice. Perhaps rename the existing one"
84-
" if you want.")
85-
))
82+
" if you want."))
8683
else:
87-
UISignalQueue.put((
88-
'updateStatusBar',
84+
self.window().updateStatusBar(
8985
_translate(
9086
"MainWindow",
91-
"The address you entered was invalid. Ignoring it.")
92-
))
87+
"The address you entered was invalid. Ignoring it."))
9388

9489
def tableWidgetBlacklistItemChanged(self, item):
9590
if item.column() == 0:

0 commit comments

Comments
 (0)