summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree
diff options
context:
space:
mode:
authorBen Boeckel <MathStuf@gmail.com>2009-05-21 13:31:38 -0400
committerBen Boeckel <MathStuf@gmail.com>2009-05-21 13:31:38 -0400
commitb69e8e3f182a7727f420e967d2aed9fc1430ce91 (patch)
tree081fbee84ba82b68afbbca71bd78e7f0278f0bff /sigmodr/tree
parent69c03c5b19035d528743fcfa880eb8b6ce5737d2 (diff)
downloadsigen-b69e8e3f182a7727f420e967d2aed9fc1430ce91.tar.gz
sigen-b69e8e3f182a7727f420e967d2aed9fc1430ce91.tar.xz
sigen-b69e8e3f182a7727f420e967d2aed9fc1430ce91.zip
Get the number of children for the row even if the column isn't 0
Diffstat (limited to 'sigmodr/tree')
-rw-r--r--sigmodr/tree/TreeModel.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/sigmodr/tree/TreeModel.cpp b/sigmodr/tree/TreeModel.cpp
index 3f0884f2..879d56d3 100644
--- a/sigmodr/tree/TreeModel.cpp
+++ b/sigmodr/tree/TreeModel.cpp
@@ -110,8 +110,6 @@ int TreeModel::rowCount(const QModelIndex& parent) const
{
if (!parent.isValid())
return 0;
- if (0 < parent.column())
- return 0;
return static_cast<TreeItem*>(parent.internalPointer())->childCount();
}