From da8d7c1291e930778853eb9f241054abf9c633ee Mon Sep 17 00:00:00 2001 From: wang_zhiqiang Date: Mon, 19 Nov 2018 18:13:53 +0800 Subject: change bg image opacity, add check icon condition Change-Id: I941f8aa2c14911af68c169377ad511562f369070 --- homescreen/src/homescreenhandler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'homescreen/src/homescreenhandler.cpp') diff --git a/homescreen/src/homescreenhandler.cpp b/homescreen/src/homescreenhandler.cpp index 2d51099..32eabd1 100644 --- a/homescreen/src/homescreenhandler.cpp +++ b/homescreen/src/homescreenhandler.cpp @@ -60,7 +60,7 @@ void HomescreenHandler::init(int port, const char *token) json_object_object_get(p_obj, "text")); QFileInfo icon_file(icon); QString icon_path; - if (icon_file.exists()) { + if (icon_file.isFile() && icon_file.exists()) { icon_path = QString(QLatin1String(icon)); } else { icon_path = "./images/Utility_Logo_Grey-01.svg"; -- cgit 1.2.3-korg