From e75b9a867e1e851891f33d535405475243b676e9 Mon Sep 17 00:00:00 2001 From: Jeena Date: Mon, 7 Jan 2013 23:46:40 +0100 Subject: [PATCH 1/2] fixed problem with {} in messages on Linux --- Linux/Tentia.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linux/Tentia.py b/Linux/Tentia.py index ad75bdf..72a4496 100755 --- a/Linux/Tentia.py +++ b/Linux/Tentia.py @@ -166,7 +166,7 @@ class Controller(QtCore.QObject): if message.isPrivate: isPrivate = "true" - func = ("tentia_instance.sendNewMessage(\"" + text + "\", \"{}\", \"{}\", {}, {}, {});").format( in_reply_to_status_id, in_reply_to_entity, locationObject, imageFilePath, isPrivate) + func = u"tentia_instance.sendNewMessage(\"{}\", \"{}\", \"{}\", {}, {}, {});".format(text, in_reply_to_status_id, in_reply_to_entity, locationObject, imageFilePath, isPrivate) self.app.timeline.evaluateJavaScript(func) @QtCore.pyqtSlot(str, str) From 625a3a40c2ba003d79e6de5e0ac9d93c291574a0 Mon Sep 17 00:00:00 2001 From: Jeena Date: Tue, 8 Jan 2013 21:42:30 +0100 Subject: [PATCH 2/2] fixed #118 --- Linux/Helper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linux/Helper.py b/Linux/Helper.py index 73dc912..27bb11b 100644 --- a/Linux/Helper.py +++ b/Linux/Helper.py @@ -104,7 +104,7 @@ class RestorableWindow(QtGui.QMainWindow): def hide(self): self._saveGeometry() - QtGui.QMainWindow.hide(self) + QtGui.QMainWindow.close(self) def sizeHint(self): return QtCore.QSize(300, 500)