summaryrefslogtreecommitdiff
path: root/src/plugins/qtsupport
diff options
context:
space:
mode:
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;
}