fixed problem with {} in messages on Linux

This commit is contained in:
Jeena 2013-01-07 23:46:40 +01:00
parent 6d7d3cbc9d
commit e75b9a867e

View file

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