fix: sort grid view by last played
Signed-off-by: Sefa Eyeoglu <contact@scrumplex.net>
This commit is contained in:
parent
c67da2ee5f
commit
af8eabbc3a
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user