diff options
Diffstat (limited to 'utils/themeeditor/parsetreemodel.cpp')
-rw-r--r-- | utils/themeeditor/parsetreemodel.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/utils/themeeditor/parsetreemodel.cpp b/utils/themeeditor/parsetreemodel.cpp index 918903bb68..eecdc98334 100644 --- a/utils/themeeditor/parsetreemodel.cpp +++ b/utils/themeeditor/parsetreemodel.cpp | |||
@@ -131,7 +131,10 @@ int ParseTreeModel::rowCount(const QModelIndex &parent) const | |||
131 | 131 | ||
132 | int ParseTreeModel::columnCount(const QModelIndex &parent) const | 132 | int ParseTreeModel::columnCount(const QModelIndex &parent) const |
133 | { | 133 | { |
134 | return numColumns; | 134 | if(parent.isValid()) |
135 | return numColumns; | ||
136 | else | ||
137 | return numColumns; | ||
135 | } | 138 | } |
136 | 139 | ||
137 | QVariant ParseTreeModel::data(const QModelIndex &index, int role) const | 140 | QVariant ParseTreeModel::data(const QModelIndex &index, int role) const |