summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTopi Reinio <topi.reinio@digia.com>2014-02-20 10:05:21 +0100
committerTopi Reiniƶ <topi.reinio@digia.com>2014-02-20 11:31:53 +0200
commit1b491954469af47835423625319eed8f174da6b0 (patch)
tree8a2cb376ee5decaa818dec55543b280f92fe689f
parent4f0ab818125f6208fbb6b8e0f570bc47a5608ce9 (diff)
Enable demo exclusion from all platforms
Add a keyword 'all' to exclude a demo from all platforms. This makes it possible to remove a demo from the launcher, but still have it buildable stand-alone. Change-Id: I706a9cd0190c468bbd7d250e96d421c7531013e3 Reviewed-by: Eirik Aavitsland <eirik.aavitsland@digia.com>
-rw-r--r--src/applicationsmodel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/applicationsmodel.cpp b/src/applicationsmodel.cpp
index 15b4cb9..5233f92 100644
--- a/src/applicationsmodel.cpp
+++ b/src/applicationsmodel.cpp
@@ -73,7 +73,7 @@ public:
QFile excludeFile(path + "/exclude.txt");
if (excludeFile.open(QFile::ReadOnly)) {
const QStringList excludeList = QString::fromUtf8(excludeFile.readAll()).split(QRegExp(":|\\s+"));
- if (excludeList.contains(target))
+ if (excludeList.contains(target) || excludeList.contains(QStringLiteral("all")))
continue;
}