TizenRefApp-6490 Contact Image isn't Displayed in Conversation after Re-opening 00/74000/3
authorOleksander Kostenko <o.kostenko@samsung.com>
Fri, 10 Jun 2016 09:10:47 +0000 (12:10 +0300)
committerAndrey Klimenko <and.klimenko@samsung.com>
Fri, 10 Jun 2016 11:35:43 +0000 (04:35 -0700)
Change-Id: Id5e378f9a7836c048747d001235ce4410d4ca39b
Signed-off-by: Oleksander Kostenko <o.kostenko@samsung.com>
src/Conversation/ConvList/Controller/src/ConvList.cpp

index 3ae6926..30e84b1 100644 (file)
@@ -183,7 +183,8 @@ ConvListItem *ConvList::getItem(MsgId msgId) const
 
 void ConvList::appendItem(const MsgConversationItem &item)
 {
-    const ThumbnailMaker::ThumbId &thumbId = item.getDirection() == Message::MD_Received ? m_RecipThumbId : -1;
+    static const ThumbnailMaker::ThumbId invalidId = -1;
+    const ThumbnailMaker::ThumbId &thumbId = item.getDirection() == Message::MD_Received ? m_RecipThumbId : invalidId;
     appendItem(new ConvListItem(item, m_App, m_FileViewer, m_WorkingDir, m_SearchWord, thumbId));
 }