diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp index 36324d3c3b750b80d875c8c536822832c2bf5776..68bd4682c069707fa87297f034b557ad6c712ea8 100644 --- a/src/plugins/qtsupport/exampleslistmodel.cpp +++ b/src/plugins/qtsupport/exampleslistmodel.cpp @@ -134,10 +134,12 @@ QList<ExampleItem> ExamplesListModel::parseExamples(QXmlStreamReader* reader, co } break; case QXmlStreamReader::EndElement: - if (reader->name() == QLatin1String("example")) - examples.append(item); - else if (reader->name() == QLatin1String("examples")) + if (reader->name() == QLatin1String("example")) { + if (!item.projectPath.isEmpty() && QFileInfo(item.projectPath).exists()) + examples.append(item); + } else if (reader->name() == QLatin1String("examples")) { return examples; + } break; default: // nothing break;