fix: sort grid view by last played

Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
Sefa Eyeoglu 2022-10-02 15:07:21 +02:00
parent c67da2ee5f
commit af8eabbc3a
No known key found for this signature in database
GPG Key ID: C10411294912A422

View File

@ -67,6 +67,7 @@ void InstanceView::prepareModel()
connect(m_tableProxy, &QAbstractItemModel::dataChanged, this, &InstanceView::dataChanged);
m_gridProxy = new InstanceGridProxyModel(this);
m_gridProxy->setSourceModel(m_instances);
m_gridProxy->sort(InstanceList::LastPlayedColumn, Qt::DescendingOrder);
connect(m_tableProxy, &QAbstractItemModel::dataChanged, this, &InstanceView::dataChanged);
}