Bug fix: convert from Qstring to standard string
This commit is contained in:
parent
391df043f9
commit
dfcb117b49
|
@ -907,7 +907,7 @@ class MyForm(QtGui.QMainWindow):
|
||||||
shared.statusIconColor = 'red'
|
shared.statusIconColor = 'red'
|
||||||
# if the connection is lost then show a notification
|
# if the connection is lost then show a notification
|
||||||
if self.connected:
|
if self.connected:
|
||||||
self.notifierShow('Bitmessage',QtGui.QApplication.translate("MainWindow", "Connection lost"))
|
self.notifierShow('Bitmessage',str(QtGui.QApplication.translate("MainWindow", "Connection lost")))
|
||||||
self.connected = False
|
self.connected = False
|
||||||
|
|
||||||
if self.actionStatus != None:
|
if self.actionStatus != None:
|
||||||
|
@ -920,7 +920,7 @@ class MyForm(QtGui.QMainWindow):
|
||||||
shared.statusIconColor = 'yellow'
|
shared.statusIconColor = 'yellow'
|
||||||
# if a new connection has been established then show a notification
|
# if a new connection has been established then show a notification
|
||||||
if not self.connected:
|
if not self.connected:
|
||||||
self.notifierShow('Bitmessage',QtGui.QApplication.translate("MainWindow", "Connected"))
|
self.notifierShow('Bitmessage',str(QtGui.QApplication.translate("MainWindow", "Connected")))
|
||||||
self.connected = True
|
self.connected = True
|
||||||
|
|
||||||
if self.actionStatus != None:
|
if self.actionStatus != None:
|
||||||
|
@ -932,7 +932,7 @@ class MyForm(QtGui.QMainWindow):
|
||||||
self.ui.pushButtonStatusIcon.setIcon(QIcon(":/newPrefix/images/greenicon.png"))
|
self.ui.pushButtonStatusIcon.setIcon(QIcon(":/newPrefix/images/greenicon.png"))
|
||||||
shared.statusIconColor = 'green'
|
shared.statusIconColor = 'green'
|
||||||
if not self.connected:
|
if not self.connected:
|
||||||
self.notifierShow('Bitmessage',QtGui.QApplication.translate("MainWindow", "Connected"))
|
self.notifierShow('Bitmessage',str(QtGui.QApplication.translate("MainWindow", "Connected")))
|
||||||
self.connected = True
|
self.connected = True
|
||||||
|
|
||||||
if self.actionStatus != None:
|
if self.actionStatus != None:
|
||||||
|
|
Reference in New Issue
Block a user