From: Semun Lee Date: Tue, 1 Aug 2017 02:46:02 +0000 (+0900) Subject: Fix wrong condition for checking shortcut info X-Git-Tag: accepted/tizen/unified/20170807.150555~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a042e9936314b49ec38eadb88020714cf45f07cc;p=platform%2Fcore%2Fappfw%2Fwgt-backend.git Fix wrong condition for checking shortcut info Change-Id: I06467d12a59e8f2bdd452744f8a72575fb656d36 Signed-off-by: Semun Lee --- diff --git a/src/wgt/step/pkgmgr/step_generate_xml.cc b/src/wgt/step/pkgmgr/step_generate_xml.cc index ab05829..e7e8235 100644 --- a/src/wgt/step/pkgmgr/step_generate_xml.cc +++ b/src/wgt/step/pkgmgr/step_generate_xml.cc @@ -650,10 +650,10 @@ void StepGenerateXml::GenerateShortcuts(xmlTextWriterPtr writer) { if (!shortcut.app_id.empty()) xmlTextWriterWriteAttribute(writer, BAD_CAST "appid", BAD_CAST shortcut.app_id.c_str()); - if (!shortcut.app_id.empty()) + if (!shortcut.extra_data.empty()) xmlTextWriterWriteAttribute(writer, BAD_CAST "extra_data", BAD_CAST shortcut.extra_data.c_str()); - if (!shortcut.app_id.empty()) + if (!shortcut.extra_key.empty()) xmlTextWriterWriteAttribute(writer, BAD_CAST "extra_key", BAD_CAST shortcut.extra_key.c_str()); if (!shortcut.icon.empty()) {