summaryrefslogtreecommitdiffstats
path: root/generators/qtdoc/qtdocgenerator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'generators/qtdoc/qtdocgenerator.cpp')
-rw-r--r--generators/qtdoc/qtdocgenerator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/generators/qtdoc/qtdocgenerator.cpp b/generators/qtdoc/qtdocgenerator.cpp
index 7411ce10..cd78b858 100644
--- a/generators/qtdoc/qtdocgenerator.cpp
+++ b/generators/qtdoc/qtdocgenerator.cpp
@@ -263,7 +263,7 @@ QString QtXmlToSphinx::readFromLocation(const QString& location, const QString&
}
}
- if (code.isEmpty())
+ if (!identifierIsEmpty && !getCode)
ReportHandler::warning("Code snippet file found ("+location+"), but snippet "+ identifier +" not found.");
if (ok)