mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-27 14:48:46 -05:00
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
This commit is contained in:
parent
c1b04fe261
commit
ea2b926a26
@ -4302,8 +4302,6 @@ void MainWindow::bandHopping()
|
|||||||
if (hop_data.frequencies_index_ >= 0) { // new band
|
if (hop_data.frequencies_index_ >= 0) { // new band
|
||||||
ui->bandComboBox->setCurrentIndex (hop_data.frequencies_index_);
|
ui->bandComboBox->setCurrentIndex (hop_data.frequencies_index_);
|
||||||
on_bandComboBox_activated (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 ();
|
m_cmnd.clear ();
|
||||||
QStringList prefixes {".bat", ".cmd", ".exe", ""};
|
QStringList prefixes {".bat", ".cmd", ".exe", ""};
|
||||||
for (auto const& prefix : prefixes)
|
for (auto const& prefix : prefixes)
|
||||||
@ -4311,7 +4309,8 @@ void MainWindow::bandHopping()
|
|||||||
auto const& path = m_appDir + "/user_hardware" + prefix;
|
auto const& path = m_appDir + "/user_hardware" + prefix;
|
||||||
QFile f {path};
|
QFile f {path};
|
||||||
if (f.exists ()) {
|
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
|
if(m_cmnd!="") p3.start(m_cmnd); // Execute user's hardware controller
|
||||||
|
Loading…
Reference in New Issue
Block a user