summaryrefslogtreecommitdiff
path: root/src/dirdef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/dirdef.cpp')
-rw-r--r--src/dirdef.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/dirdef.cpp b/src/dirdef.cpp
index 0a63c1e..b247ba7 100644
--- a/src/dirdef.cpp
+++ b/src/dirdef.cpp
@@ -998,7 +998,13 @@ void generateDirDocs(OutputList &ol)
DirSDict::Iterator sdi(*Doxygen::directories);
for (sdi.toFirst();(dir=sdi.current());++sdi)
{
+ ol.pushGeneratorState();
+ if (!dir->hasDocumentation())
+ {
+ ol.disableAllBut(OutputGenerator::Html);
+ }
dir->writeDocumentation(ol);
+ ol.popGeneratorState();
}
if (Config_getBool(DIRECTORY_GRAPH))
{