diff options
Diffstat (limited to 'utils/themeeditor/models')
-rw-r--r-- | utils/themeeditor/models/parsetreenode.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp index 1dedd4a689..9f802ae60f 100644 --- a/utils/themeeditor/models/parsetreenode.cpp +++ b/utils/themeeditor/models/parsetreenode.cpp | |||
@@ -154,7 +154,10 @@ QString ParseTreeNode::genCode() const | |||
154 | buffer.append(children[i]->genCode()); | 154 | buffer.append(children[i]->genCode()); |
155 | } | 155 | } |
156 | if(openConditionals == 0 | 156 | if(openConditionals == 0 |
157 | && !(parent && parent->element->type == LINE_ALTERNATOR)) | 157 | && !(parent && parent->element->type == LINE_ALTERNATOR) |
158 | && !(children.count() > 0 && | ||
159 | children[children.count() - 1]->getElement()->type | ||
160 | == COMMENT)) | ||
158 | { | 161 | { |
159 | buffer.append('\n'); | 162 | buffer.append('\n'); |
160 | } | 163 | } |