Fix replay list item parent index calculation #5311

This commit is contained in:
Jakub Mrowinski 2024-12-30 00:38:04 +01:00
parent 831b63a4b1
commit b367e2d26d

View file

@ -192,7 +192,7 @@ QModelIndex RemoteReplayList_TreeModel::parent(const QModelIndex &ind) const
return QModelIndex();
else {
ReplayNode *replayNode = dynamic_cast<ReplayNode *>(static_cast<Node *>(ind.internalPointer()));
return createIndex(replayNode->getParent()->indexOf(replayNode), 0, replayNode);
return createIndex(replayNode->getParent()->indexOf(replayNode), 0, replayNode->getParent());
}
}