Pass index.parent() as parent parameter for rowCount

Signed-off-by: TheLastRar <TheLastRar@users.noreply.github.com>
This commit is contained in:
TheLastRar
2022-11-14 19:04:41 +00:00
parent ac993aa31f
commit aef5349aee
3 changed files with 3 additions and 3 deletions

View File

@ -421,7 +421,7 @@ int AccountList::columnCount(const QModelIndex &parent) const
Qt::ItemFlags AccountList::flags(const QModelIndex &index) const
{
if (index.row() < 0 || index.row() >= rowCount(index) || !index.isValid())
if (index.row() < 0 || index.row() >= rowCount(index.parent()) || !index.isValid())
{
return Qt::NoItemFlags;
}