diff options
author | kcat <[email protected]> | 2018-10-29 10:10:06 -0700 |
---|---|---|
committer | GitHub <[email protected]> | 2018-10-29 10:10:06 -0700 |
commit | 44a4602508119b528fd290c8d6ff836a5a8db87f (patch) | |
tree | fd39c1d42c21eb751b1aa9696d7c758f6fc7d4de /utils/alsoft-config/mainwindow.cpp | |
parent | 56b8b976427175731b205262f11b420581e24efd (diff) | |
parent | 08226bc6b0147b69a1afb74d83c6a8821e93601b (diff) |
Merge pull request #240 from ShFil119/impr/simplify_statements
Simplify some statements
Diffstat (limited to 'utils/alsoft-config/mainwindow.cpp')
-rw-r--r-- | utils/alsoft-config/mainwindow.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/alsoft-config/mainwindow.cpp b/utils/alsoft-config/mainwindow.cpp index 110fe4ed..56ac4f3f 100644 --- a/utils/alsoft-config/mainwindow.cpp +++ b/utils/alsoft-config/mainwindow.cpp @@ -916,7 +916,7 @@ void MainWindow::saveConfig(const QString &fname) const settings.setValue("channels", getValueFromName(speakerModeList, ui->channelConfigCombo->currentText())); uint rate = ui->sampleRateCombo->currentText().toUInt(); - if(!(rate > 0)) + if(rate <= 0) settings.setValue("frequency", QString()); else settings.setValue("frequency", rate); |