diff --git a/utils/themeeditor/models/parsetreenode.cpp b/utils/themeeditor/models/parsetreenode.cpp index 9cc73ce1c7..c7df4a4edb 100644 --- a/utils/themeeditor/models/parsetreenode.cpp +++ b/utils/themeeditor/models/parsetreenode.cpp @@ -1007,13 +1007,6 @@ QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional, else child = 1; } - else if(val.type() == QVariant::String) - { - if(val.toString().length() > 0) - child = 0; - else - child = 1; - } else if(element->tag->name[0] == 'i' || element->tag->name[0] == 'I' || element->tag->name[0] == 'f' || element->tag->name[0] == 'F') { @@ -1022,6 +1015,13 @@ QVariant ParseTreeNode::evalTag(const RBRenderInfo& info, bool conditional, else child = 1; } + else if(val.type() == QVariant::String) + { + if(val.toString().length() > 0) + child = 0; + else + child = 1; + } else { child = val.toInt();