Small fix to ensure that settings are saved to their default values when you first run the program.

This commit is contained in:
Collin Kidder
2017-12-10 19:18:15 -05:00
parent 842f5fe0bc
commit 60242ece70
2 changed files with 4 additions and 1 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ public:
signals:
void updatedSettings();
private slots:
public slots:
void updateSettings();
private:
+3
View File
@@ -48,6 +48,9 @@ MainWindow::MainWindow(QWidget *parent) :
ui->canFramesView->setModel(proxyModel);
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.
readSettings();
ui->canFramesView->setColumnWidth(0, 150); //time stamp