From fbc2e259710978e4c383b3dc7c9915f267884012 Mon Sep 17 00:00:00 2001 From: iovar Date: Mon, 18 Jun 2007 15:33:38 +0000 Subject: rmdTrayIcon.py: Fixed character encoding issue(improper conversion) that caused an exception and stopped the dialog with known exit codes appear (everything kept coming as unknown). git-svn-id: https://recordmydesktop.svn.sourceforge.net/svnroot/recordmydesktop/trunk@359 f606c939-3180-4ac9-a4b8-4b8779d57d0a --- qt-recordmydesktop/src/rmdTrayIcon.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'qt-recordmydesktop/src/rmdTrayIcon.py') diff --git a/qt-recordmydesktop/src/rmdTrayIcon.py b/qt-recordmydesktop/src/rmdTrayIcon.py index 6f96183..1d657b6 100644 --- a/qt-recordmydesktop/src/rmdTrayIcon.py +++ b/qt-recordmydesktop/src/rmdTrayIcon.py @@ -219,8 +219,9 @@ class trayIcon(object): self.dialog = QtGui.QWidget() self.label1=None try: - self.label1 = QtGui.QLabel("\t\t"+TrayIconStr['RecFinishedKnown']+ - ": %d\n"%(status)+TrayIconStr['ErrDesc']+":%s\n"%(rmdErrStr[int(status)])) + self.label1 = QtGui.QLabel("\t\t"+TrayIconStr['RecFinishedKnown'] + + ": %d\n"%(status) + TrayIconStr['ErrDesc'] + ":" + + (rmdErrStr[int(status)]) + "\n") except: self.label1 = QtGui.QLabel("\t\t"+TrayIconStr['RecFinishedUnknown']+": %d \n"%(status)) self.label1.setAlignment(QtCore.Qt.AlignHCenter) -- cgit v1.2.3