From b8920c535e566da01c7182b3614bc62a39313157 Mon Sep 17 00:00:00 2001 From: Leopixelo Date: Tue, 2 Jun 2026 12:00:51 +0200 Subject: [PATCH] sort by ID column by default --- mainwindow.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mainwindow.cpp b/mainwindow.cpp index 814e9e1..b4577e6 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -49,6 +49,9 @@ MainWindow::MainWindow(QWidget *parent) : ui->canFramesView->setModel(proxyModel); ui->canFramesView->setSelectionMode(QAbstractItemView::NoSelection); + + // Sort by ID column (index 1) by default + proxyModel->sort(1, Qt::AscendingOrder); settingsDialog = new MainSettingsDialog(); //instantiate the settings dialog so it can initialize settings if this is the first run or the config file was deleted. settingsDialog->updateSettings(); //write out all the settings. If this is the first run it'll write defaults out.