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.