From 742ff2af5820dff23bb97293cab6ee0fe74acf76 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Mon, 4 Oct 2010 22:52:16 +0200 Subject: [PATCH] do not double reload messages --- weboob/applications/qhavesex/contacts.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/weboob/applications/qhavesex/contacts.py b/weboob/applications/qhavesex/contacts.py index b5a5c81f..a9615f8c 100644 --- a/weboob/applications/qhavesex/contacts.py +++ b/weboob/applications/qhavesex/contacts.py @@ -162,6 +162,8 @@ class ContactThread(QWidget): self.process_reply.do('post_message', m, backends=self.contact.backend) def _postReply_cb(self, backend, ignored): + if not backend: + return self.ui.textEdit.clear() self.ui.textEdit.setEnabled(True) self.ui.sendButton.setEnabled(True)