diff options
author | Chris Robinson <[email protected]> | 2013-06-27 23:31:51 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2013-06-27 23:31:51 -0700 |
commit | 314f9e2686c4b54e6c2ff50f13a655b3cc3202a8 (patch) | |
tree | 12c2e0bfba1a46015fa38fe36f981d597122922a /utils/alsoft-config | |
parent | 2c7f94e285cfcb9bb1e534e47581b371d355d0f6 (diff) |
Update the period size/count sliders when loading
Diffstat (limited to 'utils/alsoft-config')
-rw-r--r-- | utils/alsoft-config/mainwindow.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp index e799c4fb..f2db5c54 100644 --- a/utils/alsoft-config/mainwindow.cpp +++ b/utils/alsoft-config/mainwindow.cpp @@ -199,12 +199,18 @@ void MainWindow::loadConfig(const QString &fname) int periodsize = settings.value("period_size").toInt(); ui->periodSizeEdit->clear(); if(periodsize >= 64) + { ui->periodSizeEdit->insert(QString::number(periodsize)); + updatePeriodSizeSlider(); + } int periodcount = settings.value("periods").toInt(); ui->periodCountEdit->clear(); if(periodcount >= 2) + { ui->periodCountEdit->insert(QString::number(periodcount)); + updatePeriodCountSlider(); + } QStringList disabledCpuExts = settings.value("disable-cpu-exts").toStringList(); if(disabledCpuExts.size() == 1) |