diff options
Diffstat (limited to 'view/sharedcache/ui/symboltable.cpp')
| -rw-r--r-- | view/sharedcache/ui/symboltable.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/view/sharedcache/ui/symboltable.cpp b/view/sharedcache/ui/symboltable.cpp index e4c5dcd8..a876bf61 100644 --- a/view/sharedcache/ui/symboltable.cpp +++ b/view/sharedcache/ui/symboltable.cpp @@ -187,6 +187,7 @@ SymbolTableView::SymbolTableView(QWidget* parent) : setSelectionMode(QAbstractItemView::SingleSelection); verticalHeader()->setVisible(false); + sortByColumn(0, Qt::AscendingOrder); setSortingEnabled(true); } @@ -203,6 +204,10 @@ void SymbolTableView::populateSymbols(BinaryView &view) { auto symbols = watcher->result(); m_model->updateSymbols(std::move(symbols)); + + // Reapply the current sort after repopulating the model + // TODO: The model should use `QSortFilterProxyModel`, but that's a bigger change. + setSortingEnabled(true); } }); QFuture<SymbolList> future = QtConcurrent::run([controller]() { |
