Call self.window().updateStatusBar directly in blacklist
This commit is contained in:
parent
ef3f69f75d
commit
54faa2152f
|
@ -5,7 +5,6 @@ from addresses import addBMIfNotPresent
|
||||||
from bmconfigparser import BMConfigParser
|
from bmconfigparser import BMConfigParser
|
||||||
from dialogs import AddAddressDialog
|
from dialogs import AddAddressDialog
|
||||||
from helper_sql import sqlExecute, sqlQuery
|
from helper_sql import sqlExecute, sqlQuery
|
||||||
from queues import UISignalQueue
|
|
||||||
from retranslateui import RetranslateMixin
|
from retranslateui import RetranslateMixin
|
||||||
from tr import _translate
|
from tr import _translate
|
||||||
from uisignaler import UISignaler
|
from uisignaler import UISignaler
|
||||||
|
@ -75,21 +74,17 @@ class Blacklist(QtGui.QWidget, RetranslateMixin):
|
||||||
sql = '''INSERT INTO whitelist VALUES (?,?,?)'''
|
sql = '''INSERT INTO whitelist VALUES (?,?,?)'''
|
||||||
sqlExecute(sql, *t)
|
sqlExecute(sql, *t)
|
||||||
else:
|
else:
|
||||||
UISignalQueue.put((
|
self.window().updateStatusBar(
|
||||||
'updateStatusBar',
|
|
||||||
_translate(
|
_translate(
|
||||||
"MainWindow",
|
"MainWindow",
|
||||||
"Error: You cannot add the same address to your"
|
"Error: You cannot add the same address to your"
|
||||||
" list twice. Perhaps rename the existing one"
|
" list twice. Perhaps rename the existing one"
|
||||||
" if you want.")
|
" if you want."))
|
||||||
))
|
|
||||||
else:
|
else:
|
||||||
UISignalQueue.put((
|
self.window().updateStatusBar(
|
||||||
'updateStatusBar',
|
|
||||||
_translate(
|
_translate(
|
||||||
"MainWindow",
|
"MainWindow",
|
||||||
"The address you entered was invalid. Ignoring it.")
|
"The address you entered was invalid. Ignoring it."))
|
||||||
))
|
|
||||||
|
|
||||||
def tableWidgetBlacklistItemChanged(self, item):
|
def tableWidgetBlacklistItemChanged(self, item):
|
||||||
if item.column() == 0:
|
if item.column() == 0:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user