From 54faa2152f18283bee2dabb9c425070dbd19900d Mon Sep 17 00:00:00 2001
From: Dmitri Bogomolov <4glitch@gmail.com>
Date: Fri, 26 Feb 2021 21:19:56 +0200
Subject: [PATCH] Call self.window().updateStatusBar directly in blacklist

---
 src/bitmessageqt/blacklist.py | 13 ++++---------
 1 file changed, 4 insertions(+), 9 deletions(-)

diff --git a/src/bitmessageqt/blacklist.py b/src/bitmessageqt/blacklist.py
index e5d11af8..3c099b10 100644
--- a/src/bitmessageqt/blacklist.py
+++ b/src/bitmessageqt/blacklist.py
@@ -5,7 +5,6 @@ from addresses import addBMIfNotPresent
 from bmconfigparser import BMConfigParser
 from dialogs import AddAddressDialog
 from helper_sql import sqlExecute, sqlQuery
-from queues import UISignalQueue
 from retranslateui import RetranslateMixin
 from tr import _translate
 from uisignaler import UISignaler
@@ -75,21 +74,17 @@ class Blacklist(QtGui.QWidget, RetranslateMixin):
                         sql = '''INSERT INTO whitelist VALUES (?,?,?)'''
                     sqlExecute(sql, *t)
                 else:
-                    UISignalQueue.put((
-                        'updateStatusBar',
+                    self.window().updateStatusBar(
                         _translate(
                             "MainWindow",
                             "Error: You cannot add the same address to your"
                             " list twice. Perhaps rename the existing one"
-                            " if you want.")
-                    ))
+                            " if you want."))
             else:
-                UISignalQueue.put((
-                    'updateStatusBar',
+                self.window().updateStatusBar(
                     _translate(
                         "MainWindow",
-                        "The address you entered was invalid. Ignoring it.")
-                ))
+                        "The address you entered was invalid. Ignoring it."))
 
     def tableWidgetBlacklistItemChanged(self, item):
         if item.column() == 0: