Fix wrong condition for checking shortcut info 25/141525/1
authorSemun Lee <semun.lee@samsung.com>
Tue, 1 Aug 2017 02:46:02 +0000 (11:46 +0900)
committerSemun Lee <semun.lee@samsung.com>
Tue, 1 Aug 2017 02:46:02 +0000 (11:46 +0900)
Change-Id: I06467d12a59e8f2bdd452744f8a72575fb656d36
Signed-off-by: Semun Lee <semun.lee@samsung.com>
src/wgt/step/pkgmgr/step_generate_xml.cc

index ab05829..e7e8235 100644 (file)
@@ -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()) {