summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPali Rohár <pali.rohar@gmail.com>2016-11-27 15:55:54 (GMT)
committerPali Rohár <pali.rohar@gmail.com>2016-11-27 15:55:54 (GMT)
commit15579ddcf34ad04bf190a189b670f62c3796c057 (patch)
tree6c5ab89ee8fc6a7f3222dc12e30a0f9425425f54
parent9bdf83a9a20a0dcc69c21b060b6ce26272646ba8 (diff)
Fix crash after OTR plugin generates key
Function OtrlChatInterface::replayStoredMessages() had wrong logic to check if there is still some postponed message waiting for processing. BUG: 349596 FIXED-IN: 16.12
-rw-r--r--plugins/otr/otrlchatinterface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/otr/otrlchatinterface.cpp b/plugins/otr/otrlchatinterface.cpp
index 0c73323..6b76520 100644
--- a/plugins/otr/otrlchatinterface.cpp
+++ b/plugins/otr/otrlchatinterface.cpp
@@ -932,7 +932,7 @@ void OtrlChatInterface::otrlMessagePoll()
void OtrlChatInterface::replayStoredMessages()
{
- while (m_storedMessages.isEmpty()) {
+ while (!m_storedMessages.isEmpty()) {
Kopete::Message msg = m_storedMessages.takeFirst();
msg.manager()->appendMessage(msg);
}