mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-24 04:28:58 +00:00
chore(StatusQ/MovableModel): fix index creation in data() method
This commit is contained in:
parent
ca90636384
commit
3859c5c76e
@ -88,7 +88,7 @@ QVariant MovableModel::data(const QModelIndex &index, int role) const
|
|||||||
if (m_sourceModel == nullptr)
|
if (m_sourceModel == nullptr)
|
||||||
return {};
|
return {};
|
||||||
|
|
||||||
return m_sourceModel->data(index, role);
|
return m_sourceModel->index(index.row(), index.column()).data(role);
|
||||||
}
|
}
|
||||||
|
|
||||||
QHash<int, QByteArray> MovableModel::roleNames() const
|
QHash<int, QByteArray> MovableModel::roleNames() const
|
||||||
|
Loading…
x
Reference in New Issue
Block a user