From e38c71af1e94b5a820387b733a40f1f55180e541 Mon Sep 17 00:00:00 2001 From: Joe Taylor Date: Thu, 11 Jun 2015 17:18:07 +0000 Subject: [PATCH] Clear Message Averaging window when ClrAvg is clicked. Remove some obsolete code. Tweak a label. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5588 ab8295b8-cf94-4d9e-aec4-7959e3be5d79 --- mainwindow.cpp | 6 +----- mainwindow.h | 1 - messageaveraging.ui | 2 +- 3 files changed, 2 insertions(+), 7 deletions(-) diff --git a/mainwindow.cpp b/mainwindow.cpp index 82eb86ec0..c573be0c5 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1536,14 +1536,10 @@ void MainWindow::freezeDecode(int n) //freezeDecode() if((n%100)==2) on_DecodeButton_clicked (true); } -void MainWindow::clrAvg() -{ - m_nclearave=1; -} - void MainWindow::on_ClrAvgButton_clicked() { m_nclearave=1; + if(m_msgAvgWidget->isVisible()) m_msgAvgWidget->displayAvg(""); } void MainWindow::msgAvgDecode2() diff --git a/mainwindow.h b/mainwindow.h index 92514ac20..9e604b519 100644 --- a/mainwindow.h +++ b/mainwindow.h @@ -97,7 +97,6 @@ public slots: void p1Error(QProcess::ProcessError); void setXIT(int n); void setFreq4(int rxFreq, int txFreq); - void clrAvg(); void msgAvgDecode2(); protected: diff --git a/messageaveraging.ui b/messageaveraging.ui index 5bf4a7674..3883f6799 100644 --- a/messageaveraging.ui +++ b/messageaveraging.ui @@ -31,7 +31,7 @@ - UTC Sync DT Freq + UTC Sync DT Freq