diff options
author | Ben Boeckel <MathStuf@gmail.com> | 2009-05-02 02:42:59 -0400 |
---|---|---|
committer | Ben Boeckel <MathStuf@gmail.com> | 2009-05-02 02:42:59 -0400 |
commit | 35c4c6f14990bdef3b3eba51a538cb064b39fefc (patch) | |
tree | 604b4f5ec08c8bd10aeb3e61255e178007b97e2e /sigmodr/tree/TreeModel.cpp | |
parent | e2729afb2fc7234a8b307f030907725f97ac8786 (diff) | |
download | sigen-35c4c6f14990bdef3b3eba51a538cb064b39fefc.tar.gz sigen-35c4c6f14990bdef3b3eba51a538cb064b39fefc.tar.xz sigen-35c4c6f14990bdef3b3eba51a538cb064b39fefc.zip |
Be more verbose with the check for children
Diffstat (limited to 'sigmodr/tree/TreeModel.cpp')
-rw-r--r-- | sigmodr/tree/TreeModel.cpp | 2 |
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 |