summaryrefslogtreecommitdiffstats
path: root/src/qdoc/qdocdatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/qdocdatabase.cpp')
-rw-r--r--src/qdoc/qdocdatabase.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/qdoc/qdocdatabase.cpp b/src/qdoc/qdocdatabase.cpp
index 8a4b276e8..634c01a4b 100644
--- a/src/qdoc/qdocdatabase.cpp
+++ b/src/qdoc/qdocdatabase.cpp
@@ -1050,7 +1050,9 @@ void QDocDatabase::findAllClasses(Aggregate* node)
}
else if ((*c)->isExample()) {
// use the module index title as key for the example map
- examples_.insert((*c)->tree()->indexTitle(), *c);
+ QString title = (*c)->tree()->indexTitle();
+ if (!examples_.contains(title, *c))
+ examples_.insert(title, *c);
}
else if ((*c)->isAggregate()) {
findAllClasses(static_cast<Aggregate*>(*c));