From 1b469eea4a0180686e40af382ee7d894166f01b9 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Tue, 17 Apr 2018 14:54:37 +0000 Subject: [PATCH] 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 --- mainwindow.cpp | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index fe784a632..9b3fff83f 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -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)