From 7cdadf09b4f3aa4e0bdac922b20b21ba6b34117c Mon Sep 17 00:00:00 2001 From: Tomasz Sterna Date: Tue, 14 Apr 2015 12:19:52 +0200 Subject: Proper bundle validity check --- daemon/appinfo.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/appinfo.cpp b/daemon/appinfo.cpp index 7dcf49d..7c9a876 100644 --- a/daemon/appinfo.cpp +++ b/daemon/appinfo.cpp @@ -192,7 +192,8 @@ AppInfo AppInfo::fromPath(const QString &path) { AppInfo info(Bundle::fromPath(path)); - if (!info.isValid()) { + if (!static_cast(info).isValid()) { + qCWarning(l) << "bundle" << path << "is not valid"; return AppInfo(); } -- cgit v1.2.3