aboutsummaryrefslogtreecommitdiffstats
path: root/launcher/src
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-07-04 13:30:02 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-07-04 13:30:09 +0900
commitd19ef0f45aea72756b2b1e658fdb1f8321e761cb (patch)
treeceea77fca2f33aa3aa0c320a769cc884834b2445 /launcher/src
parent984b02fc0ea25d86cca5c1c837b8ac7648add20e (diff)
add new design
Diffstat (limited to 'launcher/src')
-rw-r--r--launcher/src/shortcutappmodel.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/launcher/src/shortcutappmodel.cpp b/launcher/src/shortcutappmodel.cpp
index 0fd76b6..9ec8547 100644
--- a/launcher/src/shortcutappmodel.cpp
+++ b/launcher/src/shortcutappmodel.cpp
@@ -51,8 +51,8 @@ void ShortcutAppModel::init()
{
RegisterApp temp;
for(int i = 0; i < 3; i++) {
- temp.id = "video@0.1";
- temp.name = "video";
+ temp.id = "error@0.1";
+ temp.name = "error";
temp.icon = getIconPath(temp.id);
if (temp.icon == "") {
temp.isBlank = true;
@@ -108,8 +108,8 @@ void ShortcutAppModel::shortcutUpdate(QStringList shortcut_list)
HMI_DEBUG("Launcher", "ShortcutAppModel::shortcutUpdate id1=%s", shortcut_list.at(1).toStdString().c_str());
RegisterApp temp;
for(int i = 0; i < d->data.size(); i++) {
- temp.id = shortcut_list.at(2 * i);
- temp.name = shortcut_list.at(2 * i + 1);
+ temp.id = shortcut_list.at(2 * i) == "" ? "error@0.1" : shortcut_list.at(2 * i);
+ temp.name = shortcut_list.at(2 * i + 1) == "" ? "error" : shortcut_list.at(2 * i + 1);
temp.icon = getIconPath(temp.id);
if (temp.icon == "") {
temp.isBlank = true;