diff options
Diffstat (limited to 'src/qdoc/main.cpp')
-rw-r--r-- | src/qdoc/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/qdoc/main.cpp b/src/qdoc/main.cpp index bb62a9160..ad089eb2e 100644 --- a/src/qdoc/main.cpp +++ b/src/qdoc/main.cpp @@ -242,6 +242,10 @@ static void processQdocconfFile(const QString &fileName) config.load(fileName); QString project = config.getString(CONFIG_PROJECT); QString moduleHeader = config.getString(CONFIG_MODULEHEADER); + if (project.isEmpty()) { + Location::logToStdErrAlways(QLatin1String("qdoc can't run; no project set in qdocconf file")); + exit(1); + } /* Add the defines to the configuration variables. */ |