Fix wrong condition for checking shortcut info 19/144219/1
authorSemun Lee <semun.lee@samsung.com>
Tue, 1 Aug 2017 02:46:02 +0000 (11:46 +0900)
committerSeungha Son <seungha.son@samsung.com>
Wed, 16 Aug 2017 02:34:34 +0000 (11:34 +0900)
Change-Id: I06467d12a59e8f2bdd452744f8a72575fb656d36
Signed-off-by: Semun Lee <semun.lee@samsung.com>
src/wgt/step/pkgmgr/step_generate_xml.cc

index 7da9f76..1726b15 100644 (file)
@@ -622,10 +622,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()) {