From d19ef0f45aea72756b2b1e658fdb1f8321e761cb Mon Sep 17 00:00:00 2001 From: zheng_wenlong Date: Thu, 4 Jul 2019 13:30:02 +0900 Subject: add new design --- launcher/src/shortcutappmodel.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'launcher/src') 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; -- cgit 1.2.3-korg