From 43e85c45ab971e01716675a50d5a65717b830c4e Mon Sep 17 00:00:00 2001 From: Mark Rowe Date: Thu, 25 Sep 2025 11:46:09 -0700 Subject: Sort table views in the shared cache / kernel cache triage views by address by default The table views previously visually suggested they were being sorted by address, but in practice they were not sorted until the user set an explicit sort order by clicking on a column header. --- view/sharedcache/ui/symboltable.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'view/sharedcache/ui/symboltable.cpp') 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 future = QtConcurrent::run([controller]() { -- cgit v1.3.1