diff options
Diffstat (limited to 'smtreemodel.cpp')
| -rw-r--r-- | smtreemodel.cpp | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/smtreemodel.cpp b/smtreemodel.cpp index 86d2b77..98e7e45 100644 --- a/smtreemodel.cpp +++ b/smtreemodel.cpp @@ -40,9 +40,10 @@ int SmTreeModel::columnCount(const QModelIndex &parent) const{  }  QModelIndex SmTreeModel::index(int row, int column, const QModelIndex &parent) const{ -	if(parent.isValid() && (parent.column() != 0)){ +    //this is totally bogus! Why? Tentatively leaving it in for now... +    if(parent.isValid() && (parent.column() != 0)){  		return QModelIndex(); -	} +    }  	SmTreeItem *parentItem = itemAt(parent);  	SmTreeItem *childItem = parentItem->child(row);  	if(childItem){  | 
