Fix band hopping regression

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5478 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-05-31 13:39:28 +00:00
parent 307ead0434
commit 98842e9a21

View File

@ -4303,9 +4303,8 @@ void MainWindow::bandHopping()
}
QString new_band;
int index;
if ((index = s.indexOf (hopping_bands[iband0])) >= 0) { //See if designated band is active
new_band = hopping_bands[index];
if (s.contains (hopping_bands[iband0])) { //See if designated band is active
new_band = hopping_bands[iband0];
}
else {
// If designated band is not active, choose one that is active