Fix row count
This commit is contained in:
committed by
craig.p.drummond
parent
092258bc18
commit
11d11e549a
@@ -75,8 +75,7 @@ QVariant SearchModel::headerData(int /*section*/, Qt::Orientation /*orientation*
|
||||
|
||||
int SearchModel::rowCount(const QModelIndex &parent) const
|
||||
{
|
||||
Q_UNUSED(parent)
|
||||
return songList.count();
|
||||
return parent.isValid() ? 0 : songList.count();
|
||||
}
|
||||
|
||||
int SearchModel::columnCount(const QModelIndex &) const
|
||||
|
||||
Reference in New Issue
Block a user