summaryrefslogtreecommitdiffstats
path: root/sigmodr/tree/TreeModel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'sigmodr/tree/TreeModel.cpp')
-rw-r--r--sigmodr/tree/TreeModel.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sigmodr/tree/TreeModel.cpp b/sigmodr/tree/TreeModel.cpp
index 1cfbd6ae..dc370efc 100644
--- a/sigmodr/tree/TreeModel.cpp
+++ b/sigmodr/tree/TreeModel.cpp
@@ -60,7 +60,7 @@ bool TreeModel::hasChildren(const QModelIndex& parent) const
if (!parent.isValid())
return false;
TreeItem* item = static_cast<TreeItem*>(parent.internalPointer());
- return item->childCount();
+ return (0 < item->childCount());
}
int TreeModel::rowCount(const QModelIndex& parent) const