Fix "Save Decoded". Seems it has been broken for a while, in all modes.

This commit is contained in:
Joe Taylor 2021-03-09 11:43:28 -05:00 committed by Bill Somerville
parent 834630e2d4
commit b5d4440a8f
No known key found for this signature in database
GPG Key ID: D864B06D1E81618F

View File

@ -3292,8 +3292,6 @@ void MainWindow::to_jt9(qint32 n, qint32 istart, qint32 idone)
void MainWindow::decodeDone ()
{
if(m_mode!="FT8" or dec_data.params.nzhsym==50) m_nDecodes=0;
if(m_mode=="QRA64") m_wideGraph->drawRed(0,0);
if ("FST4W" == m_mode)
{
if (m_uploadWSPRSpots
@ -3313,7 +3311,10 @@ void MainWindow::decodeDone ()
} else {
mswait = 1000.0 * ( 1.75 * m_TRperiod - tdone );
}
if(!m_diskData) killFileTimer.start(mswait); //Kill at 3/4 period
if(!m_diskData and !m_saveAll) {
if(m_saveDecoded and (m_nDecodes==0)) killFileTimer.start(mswait); //Kill at 3/4 period
}
if(m_mode!="FT8" or dec_data.params.nzhsym==50) m_nDecodes=0;
dec_data.params.nagain=0;
dec_data.params.ndiskdat=0;