UI: AppListModel: Fix typo

This commit is contained in:
Nodir Temirkhodjaev 2024-04-18 13:05:42 +03:00
parent edb0bc5e3f
commit 7db9422d4d

View File

@ -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());