summaryrefslogtreecommitdiff
path: root/src/plugins/qtsupport
diff options
context:
space:
mode:
authorTobias Hunger <tobias.hunger@nokia.com>2012-03-27 19:00:11 +0200
committerDaniel Molkentin <daniel.molkentin@nokia.com>2012-03-27 19:44:35 +0200
commitaa722e6a608d04a943267514f1f043e37b19e874 (patch)
tree9d37d300fdf5d0a23a41b9b6c38bdbf116809137 /src/plugins/qtsupport
parent82e0f27fd1f85aa5558e75a8d980f101df8cb229 (diff)
downloadqt-creator-aa722e6a608d04a943267514f1f043e37b19e874.tar.gz
WelcomePage: Tag broken examples.
Tag examples without an existing .pro-file as "broken". That makes it possible to search for those plugins in the examples page. Change-Id: I211e7a53b395fa98fee6222a21ab5116718224c8 Reviewed-by: Daniel Molkentin <daniel.molkentin@nokia.com>
Diffstat (limited to 'src/plugins/qtsupport')
-rw-r--r--src/plugins/qtsupport/exampleslistmodel.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp
index 68bd4682c0..47fb57bca8 100644
--- a/src/plugins/qtsupport/exampleslistmodel.cpp
+++ b/src/plugins/qtsupport/exampleslistmodel.cpp
@@ -135,8 +135,9 @@ QList<ExampleItem> ExamplesListModel::parseExamples(QXmlStreamReader* reader, co
break;
case QXmlStreamReader::EndElement:
if (reader->name() == QLatin1String("example")) {
- if (!item.projectPath.isEmpty() && QFileInfo(item.projectPath).exists())
- examples.append(item);
+ if (item.projectPath.isEmpty() || !QFileInfo(item.projectPath).exists())
+ item.tags.append("broken");
+ examples.append(item);
} else if (reader->name() == QLatin1String("examples")) {
return examples;
}