strings comparaison failed with translation: fixed
This commit is contained in:
parent
b7f99a10d2
commit
cad151a440
|
@ -1640,7 +1640,7 @@ class MyForm(QtGui.QMainWindow):
|
||||||
self.NewSubscriptionDialogInstance = NewSubscriptionDialog(self)
|
self.NewSubscriptionDialogInstance = NewSubscriptionDialog(self)
|
||||||
|
|
||||||
if self.NewSubscriptionDialogInstance.exec_():
|
if self.NewSubscriptionDialogInstance.exec_():
|
||||||
if self.NewSubscriptionDialogInstance.ui.labelSubscriptionAddressCheck.text() == 'Address is valid.':
|
if self.NewSubscriptionDialogInstance.ui.labelSubscriptionAddressCheck.text() == _translate("MainWindow", "Address is valid."):
|
||||||
# First we must check to see if the address is already in the
|
# First we must check to see if the address is already in the
|
||||||
# subscriptions list. The user cannot add it again or else it
|
# subscriptions list. The user cannot add it again or else it
|
||||||
# will cause problems when updating and deleting the entry.
|
# will cause problems when updating and deleting the entry.
|
||||||
|
@ -1853,7 +1853,7 @@ class MyForm(QtGui.QMainWindow):
|
||||||
def click_pushButtonAddBlacklist(self):
|
def click_pushButtonAddBlacklist(self):
|
||||||
self.NewBlacklistDialogInstance = NewSubscriptionDialog(self)
|
self.NewBlacklistDialogInstance = NewSubscriptionDialog(self)
|
||||||
if self.NewBlacklistDialogInstance.exec_():
|
if self.NewBlacklistDialogInstance.exec_():
|
||||||
if self.NewBlacklistDialogInstance.ui.labelSubscriptionAddressCheck.text() == 'Address is valid.':
|
if self.NewBlacklistDialogInstance.ui.labelSubscriptionAddressCheck.text() == _translate("MainWindow", "Address is valid."):
|
||||||
# First we must check to see if the address is already in the
|
# First we must check to see if the address is already in the
|
||||||
# address book. The user cannot add it again or else it will
|
# address book. The user cannot add it again or else it will
|
||||||
# cause problems when updating and deleting the entry.
|
# cause problems when updating and deleting the entry.
|
||||||
|
|
Reference in New Issue
Block a user