From 9e73483b87824b82adb59d67a065ad65583f08c1 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 4 Jun 2015 20:55:22 +0000 Subject: [PATCH] Fix the broken call to a "user_hardware" script. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5530 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 82ff2bd6b..26cc6bf8f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -4302,8 +4302,6 @@ void MainWindow::bandHopping() if (hop_data.frequencies_index_ >= 0) { // new band ui->bandComboBox->setCurrentIndex (hop_data.frequencies_index_); on_bandComboBox_activated (hop_data.frequencies_index_); - - auto const& band_name = m_config.bands ()->find (m_dialFreq).remove ('m'); m_cmnd.clear (); QStringList prefixes {".bat", ".cmd", ".exe", ""}; for (auto const& prefix : prefixes) @@ -4311,7 +4309,8 @@ void MainWindow::bandHopping() auto const& path = m_appDir + "/user_hardware" + prefix; QFile f {path}; if (f.exists ()) { - m_cmnd = QDir::toNativeSeparators (f.fileName ()) + ' ' + band_name; + m_cmnd = QDir::toNativeSeparators (f.fileName ()) + ' ' + + m_config.bands ()->find (m_dialFreq).remove ('m'); } } if(m_cmnd!="") p3.start(m_cmnd); // Execute user's hardware controller