summaryrefslogtreecommitdiffstats
path: root/src/tools/qdoc/qdocdatabase.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/tools/qdoc/qdocdatabase.cpp')
-rw-r--r--src/tools/qdoc/qdocdatabase.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tools/qdoc/qdocdatabase.cpp b/src/tools/qdoc/qdocdatabase.cpp
index ffac23aae0..d06cb659c4 100644
--- a/src/tools/qdoc/qdocdatabase.cpp
+++ b/src/tools/qdoc/qdocdatabase.cpp
@@ -1627,8 +1627,12 @@ const Node* QDocDatabase::findNodeForAtom(const Atom* atom, const Node* relative
}
}
else {
- if (first.endsWith(".html"))
+ if (first.endsWith(".html")) {
node = findNodeByNameAndType(QStringList(first), Node::Document);
+ // the path may also refer to an example file with .html extension
+ if (!node && first.contains("/"))
+ return findNodeForTarget(targetPath, relative, genus, ref);
+ }
else if (first.endsWith("()"))
node = findFunctionNode(first, relative, genus);
else {