mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:15:39 +00:00
UI: AppListModel: Fix typo
This commit is contained in:
parent
edb0bc5e3f
commit
7db9422d4d
@ -286,7 +286,7 @@ SqliteDb *AppListModel::sqliteDb() const
|
||||
|
||||
void AppListModel::initialize()
|
||||
{
|
||||
setSortColumn(8);
|
||||
setSortColumn(7);
|
||||
setSortOrder(Qt::DescendingOrder);
|
||||
|
||||
connect(confManager(), &ConfManager::confChanged, this, &AppListModel::refresh);
|
||||
@ -555,6 +555,9 @@ QString AppListModel::sqlOrderColumn() const
|
||||
nameColumn, // Creation Time ~ App ID
|
||||
};
|
||||
|
||||
Q_ASSERT(sortColumn() >= 0 && sortColumn() < orderColumns.size()
|
||||
&& orderColumns.size() == postOrderColumns.size());
|
||||
|
||||
const auto &columnsStr = orderColumns.at(sortColumn());
|
||||
const auto &postColumnsStr = postOrderColumns.at(sortColumn());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user