Commit 0968c47a authored by Matthieu Gallien's avatar Matthieu Gallien 🎵 Committed by Nate Graham
Browse files

this proxy model has children only when parent is invalid

for a flat model (no hierarchy) the parent is invalid when we query the
root item
so the parent invalid means that we may have children

the parent valid means that we have no children (remember no hierarchy)
parent 75395c12
Pipeline #203678 passed with stage
in 14 minutes and 23 seconds
......@@ -156,7 +156,7 @@ QModelIndex MediaPlayListProxyModel::parent(const QModelIndex &child) const
bool MediaPlayListProxyModel::hasChildren(const QModelIndex &parent) const
{
return (!parent.isValid()) ? false : (rowCount() > 0);
return (parent.isValid()) ? false : (rowCount() > 0);
}
void MediaPlayListProxyModel::setPlayListModel(MediaPlayList *playListModel)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment