summaryrefslogtreecommitdiff
path: root/src/qdoc/node.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qdoc/node.cpp')
-rw-r--r--src/qdoc/node.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/qdoc/node.cpp b/src/qdoc/node.cpp
index 774d41f31..82bcd1b25 100644
--- a/src/qdoc/node.cpp
+++ b/src/qdoc/node.cpp
@@ -3101,11 +3101,11 @@ QString Node::fullDocumentName() const
if (n->isTextPageNode())
break;
- // Examine the parent node if one exists.
- if (n->parent())
- n = n->parent();
- else
+ // Examine the parent if the node is a member
+ if (!n->parent() || n->isRelatedNonmember())
break;
+
+ n = n->parent();
} while (true);
// Create a name based on the type of the ancestor node.