File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change 5
5
from bmconfigparser import BMConfigParser
6
6
from dialogs import AddAddressDialog
7
7
from helper_sql import sqlExecute , sqlQuery
8
- from queues import UISignalQueue
9
8
from retranslateui import RetranslateMixin
10
9
from tr import _translate
11
10
from uisignaler import UISignaler
@@ -75,21 +74,17 @@ def click_pushButtonAddBlacklist(self):
75
74
sql = '''INSERT INTO whitelist VALUES (?,?,?)'''
76
75
sqlExecute (sql , * t )
77
76
else :
78
- UISignalQueue .put ((
79
- 'updateStatusBar' ,
77
+ self .window ().updateStatusBar (
80
78
_translate (
81
79
"MainWindow" ,
82
80
"Error: You cannot add the same address to your"
83
81
" list twice. Perhaps rename the existing one"
84
- " if you want." )
85
- ))
82
+ " if you want." ))
86
83
else :
87
- UISignalQueue .put ((
88
- 'updateStatusBar' ,
84
+ self .window ().updateStatusBar (
89
85
_translate (
90
86
"MainWindow" ,
91
- "The address you entered was invalid. Ignoring it." )
92
- ))
87
+ "The address you entered was invalid. Ignoring it." ))
93
88
94
89
def tableWidgetBlacklistItemChanged (self , item ):
95
90
if item .column () == 0 :
You can’t perform that action at this time.
0 commit comments