Correct the actions taken when clearing decodes windows

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@8091 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2017-09-16 22:20:51 +00:00
parent e7be718b8d
commit bca21c0560
2 changed files with 8 additions and 2 deletions

View File

@ -550,6 +550,7 @@ MainWindow::MainWindow(QDir const& temp_directory, bool multiple,
SLOT(doubleClickOnCall(bool,bool)));
connect(ui->decodedTextBrowser,SIGNAL(selectCallsign(bool,bool)),this,
SLOT(doubleClickOnCall2(bool,bool)));
connect (ui->decodedTextBrowser, &DisplayText::erased, this, &MainWindow::band_activity_cleared);
connect (ui->decodedTextBrowser2, &DisplayText::erased, this, &MainWindow::rx_frequency_activity_cleared);
// initialize decoded text font and hook up font change signals
@ -2912,12 +2913,16 @@ void MainWindow::on_EraseButton_clicked ()
m_msErase=ms;
}
void MainWindow::rx_frequency_activity_cleared ()
void MainWindow::band_activity_cleared ()
{
m_QSOText.clear();
m_messageClient->clear_decodes ();
QFile f(m_config.temp_dir ().absoluteFilePath ("decoded.txt"));
if(f.exists()) f.remove();
}
void MainWindow::rx_frequency_activity_cleared ()
{
m_QSOText.clear();
set_dateTimeQSO(-1); // G4WJS: why do we do this?
}

View File

@ -153,6 +153,7 @@ private slots:
void decode();
void decodeBusy(bool b);
void on_EraseButton_clicked();
void band_activity_cleared ();
void rx_frequency_activity_cleared ();
void on_txFirstCheckBox_stateChanged(int arg1);
void set_dateTimeQSO(int m_ntx);