Bug fix: Conversion from QString to standard string #223

Closed
ghost wants to merge 1 commits from master into master
Showing only changes of commit dfcb117b49 - Show all commits

View File

@ -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: