Skip to content
Snippets Groups Projects
Commit aa722e6a authored by Tobias Hunger's avatar Tobias Hunger Committed by Daniel Molkentin
Browse files

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: default avatarDaniel Molkentin <daniel.molkentin@nokia.com>
parent 82e0f27f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment