Commit 89af273f authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Positioner] Be a flat list model

Return rowCount of 0 for sub items

Differential Revision: https://phabricator.kde.org/D14488
parent baf46c91
......@@ -325,7 +325,11 @@ int Positioner::rowCount(const QModelIndex& parent) const
{
if (m_folderModel) {
if (m_enabled) {
return lastRow() + 1;
if (parent.isValid()) {
return 0;
} else {
return lastRow() + 1;
}
} else {
return m_folderModel->rowCount(parent);
}
......
Markdown is supported
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