From 11d11e549a883cfb2e62a113a6eacfcdef086dbc Mon Sep 17 00:00:00 2001 From: "craig.p.drummond" Date: Wed, 18 Dec 2013 19:17:41 +0000 Subject: [PATCH] Fix row count --- models/searchmodel.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/models/searchmodel.cpp b/models/searchmodel.cpp index a0f3b9fa4..5a42b0798 100644 --- a/models/searchmodel.cpp +++ b/models/searchmodel.cpp @@ -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