Small fix to ensure that settings are saved to their default values when you first run the program.
This commit is contained in:
@@ -19,7 +19,7 @@ public:
|
|||||||
signals:
|
signals:
|
||||||
void updatedSettings();
|
void updatedSettings();
|
||||||
|
|
||||||
private slots:
|
public slots:
|
||||||
void updateSettings();
|
void updateSettings();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|||||||
@@ -48,6 +48,9 @@ MainWindow::MainWindow(QWidget *parent) :
|
|||||||
|
|
||||||
ui->canFramesView->setModel(proxyModel);
|
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();
|
readSettings();
|
||||||
|
|
||||||
ui->canFramesView->setColumnWidth(0, 150); //time stamp
|
ui->canFramesView->setColumnWidth(0, 150); //time stamp
|
||||||
|
|||||||
Reference in New Issue
Block a user