OTHER: Fix endles loop in server side browsing
This commit is contained in:
parent
c6e5965e53
commit
c458d2727f
1 changed files with 3 additions and 0 deletions
|
@ -164,6 +164,9 @@ BrowseModel::list_cb (const Xmms::List< Xmms::Dict > &res)
|
||||||
int
|
int
|
||||||
BrowseModel::rowCount (const QModelIndex &parent) const
|
BrowseModel::rowCount (const QModelIndex &parent) const
|
||||||
{
|
{
|
||||||
|
if (parent.isValid())
|
||||||
|
return 0;
|
||||||
|
|
||||||
return m_list.size ();
|
return m_list.size ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue