diff options
author | renato araujo oliveira <renato@renato-note.(none)> | 2009-11-05 17:59:37 -0300 |
---|---|---|
committer | Hugo Lima <hugo.lima@openbossa.org> | 2009-11-06 16:47:09 -0200 |
commit | 3a73744ddd334c8fa420b8c1c801b58660965940 (patch) | |
tree | 58c78a773da3e2e68d185086d3af41028c0a034b /typesystem.cpp | |
parent | da0ce894660836b1b311e529125a339645a869d4 (diff) |
Propagate generate flag for child typesystems.
Reviewed by Hugo Parente <hugo.lima@openbossa.org>
Diffstat (limited to 'typesystem.cpp')
-rw-r--r-- | typesystem.cpp | 4 |
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; } |