diff --git a/src/applications/gqrx/mainwindow.cpp b/src/applications/gqrx/mainwindow.cpp index db2a05fdb9..a94a817fb7 100644 --- a/src/applications/gqrx/mainwindow.cpp +++ b/src/applications/gqrx/mainwindow.cpp @@ -2224,19 +2224,19 @@ void MainWindow::setPassband(int bandwidth) int lo, hi; uiDockRxOpt->getFilterPreset(mode, preset, &lo, &hi); - if(lo + hi == 0) - { - lo = -bandwidth / 2; - hi = bandwidth / 2; - } - else if(lo >= 0 && hi >= 0) + if(lo >= 0 && hi >= 0) // USB { hi = lo + bandwidth; } - else if(lo <= 0 && hi <= 0) + else if(lo <= 0 && hi <= 0) // LSB { lo = hi - bandwidth; } + else // symmetric and anything else + { + lo = -bandwidth / 2; + hi = bandwidth / 2; + } remote->setPassband(lo, hi);