summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2011-03-02 20:29:00 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2011-03-02 20:29:00 -0300
commitbb6612e2cb07f4ef64a5a3fd032cfc87ed8aaf30 (patch)
treedfc62bdbd65eda977df6bd3158eae5e185b692ff
parent9116cd9f66041733805d60bdf8e9ab61c2d5b016 (diff)
Don't show a warning message when an empty code snippet was found.sb-0.6.7
Reviewer: myself :-)
-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)