mirror of
https://github.com/YACReader/yacreader
synced 2025-07-25 16:34:56 -04:00
fixed child/parent relationship in ReadingListItem
This commit is contained in:
@ -149,7 +149,7 @@ QModelIndex ReadingListModel::parent(const QModelIndex &index) const
|
||||
{
|
||||
ReadingListItem * childItem = static_cast<ReadingListItem*>(index.internalPointer());
|
||||
ReadingListItem * parent = childItem->parent;
|
||||
if(parent != 0)
|
||||
if(parent->getId() != 0)
|
||||
return createIndex(parent->row(), 0, parent);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user