From 314f9e2686c4b54e6c2ff50f13a655b3cc3202a8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 27 Jun 2013 23:31:51 -0700 Subject: Update the period size/count sliders when loading --- utils/alsoft-config/mainwindow.cpp | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v1.2.3