summaryrefslogtreecommitdiff
path: root/utils/themeeditor/parsetreemodel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/themeeditor/parsetreemodel.cpp')
-rw-r--r--utils/themeeditor/parsetreemodel.cpp5
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
132int ParseTreeModel::columnCount(const QModelIndex &parent) const 132int 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
137QVariant ParseTreeModel::data(const QModelIndex &index, int role) const 140QVariant ParseTreeModel::data(const QModelIndex &index, int role) const