Skip to content

Commit

Permalink
Set default updates sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
OneMoreGres committed Apr 20, 2020
1 parent 1764cf8 commit 74d4a6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/service/updates.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -439,6 +439,8 @@ void Model::initView(QTreeView *view)
proxy->setSourceModel(this);
view->setModel(proxy);
view->setItemDelegate(new update::UpdateDelegate(view));
view->setSortingEnabled(true);
view->sortByColumn(int(Column::Name), Qt::AscendingOrder);
#ifndef DEVELOP
view->hideColumn(int(update::Model::Column::Files));
#endif
Expand Down

0 comments on commit 74d4a6e

Please sign in to comment.