diff --git a/src/plugins/qtsupport/exampleslistmodel.cpp b/src/plugins/qtsupport/exampleslistmodel.cpp index 36324d3c3b7..68bd4682c06 100644 --- a/src/plugins/qtsupport/exampleslistmodel.cpp +++ b/src/plugins/qtsupport/exampleslistmodel.cpp @@ -134,10 +134,12 @@ QList 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;