diff --git a/src/tools/qdoc/main.cpp b/src/tools/qdoc/main.cpp index d0c3a0295a..758918e2b6 100644 --- a/src/tools/qdoc/main.cpp +++ b/src/tools/qdoc/main.cpp @@ -95,9 +95,18 @@ static void loadIndexFiles(Config& config) /* Read some XML indexes containing definitions from other documentation sets. */ - QStringList indexFiles = config.getStringList(CONFIG_INDEXES); + QStringList indexFiles; + QStringList configIndexes = config.getStringList(CONFIG_INDEXES); + foreach (const QString &index, configIndexes) { + QFileInfo fi(index); + if (fi.exists() && fi.isFile()) + indexFiles << index; + else if (Generator::runGenerateOnly()) + qDebug() << "warning: Index file not found:" << index; + } dependModules += config.getStringList(CONFIG_DEPENDS); + dependModules.removeDuplicates(); bool noOutputSubdirs = false; QString singleOutputSubdir;