From a042e9936314b49ec38eadb88020714cf45f07cc Mon Sep 17 00:00:00 2001 From: Semun Lee Date: Tue, 1 Aug 2017 11:46:02 +0900 Subject: [PATCH] Fix wrong condition for checking shortcut info Change-Id: I06467d12a59e8f2bdd452744f8a72575fb656d36 Signed-off-by: Semun Lee --- src/wgt/step/pkgmgr/step_generate_xml.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()) { -- 2.7.4