From: Oleksander Kostenko Date: Thu, 27 Oct 2016 06:54:41 +0000 (+0300) Subject: TSAM-9280 Name file have size too large display two times in popup X-Git-Tag: submit/tizen/20161031.123956~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5f1e34a3d405dff8febffc2a44085c278bf85402;p=profile%2Fmobile%2Fapps%2Fnative%2Fmessage.git TSAM-9280 Name file have size too large display two times in popup Change-Id: I2247302f4fdbbf2af8721870c176bae8c08366a1 Signed-off-by: Oleksander Kostenko --- diff --git a/src/Common/AppControl/src/AppControlCompose.cpp b/src/Common/AppControl/src/AppControlCompose.cpp index ba1cf8e8..0d415168 100644 --- a/src/Common/AppControl/src/AppControlCompose.cpp +++ b/src/Common/AppControl/src/AppControlCompose.cpp @@ -232,7 +232,9 @@ bool AppControlCompose::parseUriShare(app_control_h handle) } else { - m_FileList.push_back(uriToParse); // no prefix, uri is a path to file itself + auto it = std::find(m_FileList.begin(), m_FileList.end(), uriToParse); + if(it == m_FileList.end()) + m_FileList.push_back(uriToParse); // no prefix, uri is a path to file itself } } free(uri);