mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-05-24 10:22:26 -04:00
when changing bands as Fox, clear the hound queues
This commit is contained in:
parent
ce622487ca
commit
969411cd39
@ -7572,6 +7572,9 @@ void MainWindow::band_changed (Frequency f)
|
|||||||
}
|
}
|
||||||
setRig (f);
|
setRig (f);
|
||||||
setXIT (ui->TxFreqSpinBox->value ());
|
setXIT (ui->TxFreqSpinBox->value ());
|
||||||
|
|
||||||
|
// when changing bands, don't preserve the Fox queues
|
||||||
|
FoxReset("BandChange");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -9207,13 +9210,8 @@ void MainWindow::on_sbMax_dB_valueChanged(int n)
|
|||||||
t = t.asprintf(" Max_dB %d",m_max_dB);
|
t = t.asprintf(" Max_dB %d",m_max_dB);
|
||||||
writeFoxQSO(t);
|
writeFoxQSO(t);
|
||||||
}
|
}
|
||||||
|
void MainWindow::FoxReset(QString reason="")
|
||||||
void MainWindow::on_pbFoxReset_clicked()
|
|
||||||
{
|
{
|
||||||
if(m_specOp!=SpecOp::FOX) return;
|
|
||||||
auto button = MessageBox::query_message (this, tr ("Confirm Reset"),
|
|
||||||
tr ("Are you sure you want to clear the QSO queues?"));
|
|
||||||
if(button == MessageBox::Yes) {
|
|
||||||
QFile f(m_config.temp_dir().absoluteFilePath("houndcallers.txt"));
|
QFile f(m_config.temp_dir().absoluteFilePath("houndcallers.txt"));
|
||||||
f.remove();
|
f.remove();
|
||||||
ui->decodedTextBrowser->setText("");
|
ui->decodedTextBrowser->setText("");
|
||||||
@ -9223,7 +9221,17 @@ void MainWindow::on_pbFoxReset_clicked()
|
|||||||
m_houndQueue.clear();
|
m_houndQueue.clear();
|
||||||
m_foxQSO.clear();
|
m_foxQSO.clear();
|
||||||
m_foxQSOinProgress.clear();
|
m_foxQSOinProgress.clear();
|
||||||
|
if (reason != "") writeFoxQSO(" " + reason);
|
||||||
writeFoxQSO(" Reset");
|
writeFoxQSO(" Reset");
|
||||||
|
}
|
||||||
|
|
||||||
|
void MainWindow::on_pbFoxReset_clicked()
|
||||||
|
{
|
||||||
|
if(m_specOp!=SpecOp::FOX) return;
|
||||||
|
auto button = MessageBox::query_message (this, tr ("Confirm Reset"),
|
||||||
|
tr ("Are you sure you want to clear the QSO queues?"));
|
||||||
|
if(button == MessageBox::Yes) {
|
||||||
|
FoxReset();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -9347,6 +9355,7 @@ void MainWindow::selectHound(QString line, bool bTopQueue)
|
|||||||
* <Enter> is equivalent to double-clicking on the top-most line.
|
* <Enter> is equivalent to double-clicking on the top-most line.
|
||||||
*/
|
*/
|
||||||
if(line.length()==0) return;
|
if(line.length()==0) return;
|
||||||
|
if(line.length() < 6) return;
|
||||||
QString houndCall=line.split(" ",SkipEmptyParts).at(0);
|
QString houndCall=line.split(" ",SkipEmptyParts).at(0);
|
||||||
|
|
||||||
// Don't add a call already enqueued or in QSO
|
// Don't add a call already enqueued or in QSO
|
||||||
|
@ -326,6 +326,7 @@ private slots:
|
|||||||
void on_sbF_High_valueChanged(int n);
|
void on_sbF_High_valueChanged(int n);
|
||||||
void chk_FST4_freq_range();
|
void chk_FST4_freq_range();
|
||||||
void on_pbFoxReset_clicked();
|
void on_pbFoxReset_clicked();
|
||||||
|
void FoxReset(QString reason);
|
||||||
void on_comboBoxHoundSort_activated (int index);
|
void on_comboBoxHoundSort_activated (int index);
|
||||||
void not_GA_warning_message ();
|
void not_GA_warning_message ();
|
||||||
void checkMSK144ContestType();
|
void checkMSK144ContestType();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user