From 35c4c6f14990bdef3b3eba51a538cb064b39fefc Mon Sep 17 00:00:00 2001 From: Ben Boeckel Date: Sat, 2 May 2009 02:42:59 -0400 Subject: Be more verbose with the check for children --- sigmodr/tree/TreeModel.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sigmodr/tree/TreeModel.cpp') 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(parent.internalPointer()); - return item->childCount(); + return (0 < item->childCount()); } int TreeModel::rowCount(const QModelIndex& parent) const -- cgit