summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Mollekopf <mollekopf@kolabsys.com>2012-08-23 14:31:56 (GMT)
committerChristian Mollekopf <mollekopf@kolabsys.com>2012-08-23 14:31:56 (GMT)
commit5f80365528753f834135cc8aa48d1679b5bbbdbe (patch)
tree3dcac0fa3b84b4b3692b2e0e16f34647b4d8b728
parent0e90a940d9bbb2b6ffa0221637a3193c07b2c216 (diff)
downloadlibkolab-5f80365528753f834135cc8aa48d1679b5bbbdbe.tar.gz
Fix for https://bugs.kde.org/show_bug.cgi?id=305454. Thanks for the Patch Laurent.
-rw-r--r--kolabformat/v2helpers.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/kolabformat/v2helpers.h b/kolabformat/v2helpers.h
index f93f9a1..29a23c3 100644
--- a/kolabformat/v2helpers.h
+++ b/kolabformat/v2helpers.h
@@ -77,6 +77,7 @@ QImage getPicture(const QString &pictureAttachmentName, const KMime::Message::Pt
KMime::Content *imgContent = Mime::findContentByName(data, pictureAttachmentName/*"kolab-picture.png"*/, type);
if (!imgContent) {
Warning() << "could not find picture: " << pictureAttachmentName;
+ return QImage();
}
QByteArray imgData = imgContent->decodedContent();
QBuffer buffer(&imgData);