[SCM] ktp-text-ui packaging branch, master, updated. debian/15.12.1-1-1918-gdf4b0ec

Maximiliano Curia maxy at moszumanska.debian.org
Sat May 28 00:21:05 UTC 2016


Gitweb-URL: http://git.debian.org/?p=pkg-kde/applications/ktp-text-ui.git;a=commitdiff;h=35b1bc7

The following commit has been merged in the master branch:
commit 35b1bc72fc6277cbf8f54d9bc6d58ea927f90bc3
Author: David Edmundson <kde at davidedmundson.co.uk>
Date:   Wed Feb 1 23:37:48 2012 +0000

    Fix crash in message
---
 lib/message.cpp | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/lib/message.cpp b/lib/message.cpp
index 24f94e3..508f7d7 100644
--- a/lib/message.cpp
+++ b/lib/message.cpp
@@ -43,7 +43,13 @@ QString Message::mainMessagePart() const
 
 void Message::setMainMessagePart(const QString& message)
 {
-    m_content[Message::MainMessage] = message;
+    //FIXME there must be a better way to do this.
+    if (m_content.size() > 0) {
+        m_content[Message::MainMessage] = message;
+    }
+    else {
+        m_content.append(message);
+    }
 }
 
 void Message::appendMessagePart(const QString& part)

-- 
ktp-text-ui packaging



More information about the pkg-kde-commits mailing list