fixed #137
This commit is contained in:
parent
aac70a1083
commit
3fee55ea1a
2 changed files with 3 additions and 3 deletions
|
@ -346,8 +346,8 @@ class NewPost(Helper.RestorableWindow):
|
|||
self.statusBar().showMessage(str(count))
|
||||
|
||||
def sendMessage(self):
|
||||
count = 256 - len(self.textInput.toPlainText())
|
||||
if count >= 0:
|
||||
count = len(self.textInput.toPlainText())
|
||||
if count > 0 and count <= 256:
|
||||
message = Helper.PostModel()
|
||||
message.text = unicode(self.textInput.toPlainText().toUtf8(), "utf-8")
|
||||
message.inReplyTostatusId = self.status_id
|
||||
|
|
Reference in a new issue