Fix erroneous use of a potentially NULL pointer.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5604 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor 2015-06-13 12:08:32 +00:00
parent 9950295679
commit 2b671dbd2e

View File

@ -1542,8 +1542,10 @@ void MainWindow::freezeDecode(int n) //freezeDecode()
void MainWindow::on_ClrAvgButton_clicked()
{
m_nclearave=1;
if(m_msgAvgWidget != NULL) {
if(m_msgAvgWidget->isVisible()) m_msgAvgWidget->displayAvg("");
}
}
void MainWindow::msgAvgDecode2()
{