aboutsummaryrefslogtreecommitdiffstats
path: root/typesystem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'typesystem.cpp')
-rw-r--r--typesystem.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/typesystem.cpp b/typesystem.cpp
index 748de04fb..603f414b5 100644
--- a/typesystem.cpp
+++ b/typesystem.cpp
@@ -949,8 +949,8 @@ bool Handler::startElement(const QString &, const QString &n,
m_error = "No typesystem name specified";
return false;
}
-
- if (!m_database->parseFile(name, convertBoolean(attributes["generate"], "generate", true))) {
+ bool generateChild = (convertBoolean(attributes["generate"], "generate", true) && (m_generate == TypeEntry::GenerateAll));
+ if (!m_database->parseFile(name, generateChild)) {
m_error = QString("Failed to parse: '%1'").arg(name);
return false;
}