Ensure that he .WAV file read flag gets cleared when returning to monitoring

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@5618 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-06-15 22:49:31 +00:00
parent 1fb652ddf2
commit 327a5907b9

View File

@ -977,8 +977,6 @@ void MainWindow::on_monitorButton_clicked (bool checked)
if (checked && !prior)
{
m_diskData = false; // no longer reading WAV files
Frequency operating_frequency {m_dialFreq};
if (m_config.monitor_last_used ())
{
@ -1006,6 +1004,7 @@ void MainWindow::monitor (bool state)
{
ui->monitorButton->setChecked (state);
if (state) {
m_diskData = false; // no longer reading WAV files
if (!m_monitoring) Q_EMIT resumeAudioInputStream ();
} else {
Q_EMIT suspendAudioInputStream ();