Require confirmation when Fox operator hits "Reset" button.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8618 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2018-04-17 14:54:37 +00:00
parent 62b8b6531e
commit 1b469eea4a

View File

@ -7285,10 +7285,15 @@ void MainWindow::on_sbMax_dB_valueChanged(int n)
void MainWindow::on_pbFoxReset_clicked()
{
ui->textBrowser4->setText("");
m_houndQueue.clear();
// m_foxQSOinProgress.clear(); //It this a bad idea ???
writeFoxQSO(" Reset");
auto button = MessageBox::query_message (this, tr ("Confirm Reset"),
tr ("Are you sure you want to clear the QSO queues?"));
if(button == MessageBox::Yes) {
ui->textBrowser4->setText("");
m_houndQueue.clear();
m_foxQSO.clear();
m_foxQSOinProgress.clear(); //It this a bad idea ???
writeFoxQSO(" Reset");
}
}
void MainWindow::on_comboBoxHoundSort_activated(int index)