diff --git a/shortcuts.txt b/shortcuts.txt index 9461b65bb..c858f0639 100644 --- a/shortcuts.txt +++ b/shortcuts.txt @@ -41,5 +41,4 @@ Alt+R Set Tx4 message to RR73 Alt+S Stop monitoring Alt+T Tune - Alt+V Save the most recently completed *.wav file diff --git a/widgets/mainwindow.cpp b/widgets/mainwindow.cpp index ad5d0b4ae..87db39760 100644 --- a/widgets/mainwindow.cpp +++ b/widgets/mainwindow.cpp @@ -1482,7 +1482,6 @@ void MainWindow::dataSink(qint64 frames) auto const& period_start = now.addSecs (-(now.time ().minute () % (int(m_TRperiod) / 60)) * 60); m_fnameWE=m_config.save_directory ().absoluteFilePath (period_start.toString ("yyMMdd_hhmm")); } - m_fileToSave.clear (); int samples=m_TRperiod*12000; if(m_mode=="FT4") samples=21*3456; @@ -1691,7 +1690,6 @@ void MainWindow::fastSink(qint64 frames) if(n<(m_TRperiod/2)) n=n+m_TRperiod; auto const& period_start = now.addSecs (-n); m_fnameWE = m_config.save_directory ().absoluteFilePath (period_start.toString ("yyMMdd_hhmmss")); - m_fileToSave.clear (); if(m_saveAll or m_bAltV or (m_bDecoded and m_saveDecoded) or (m_mode!="MSK144")) { m_bAltV=false; // the following is potential a threading hazard - not a good @@ -2086,13 +2084,6 @@ void MainWindow::keyPressEvent (QKeyEvent * e) return; } break; - case Qt::Key_V: - if(e->modifiers() & Qt::AltModifier) { - m_fileToSave = m_fnameWE; - m_bAltV=true; - return; - } - break; case Qt::Key_Z: //### Recover from hung decode() ?? ### if(e->modifiers() & Qt::AltModifier) { decodeDone(); @@ -3443,8 +3434,7 @@ void MainWindow::pskPost (DecodedText const& decodedtext) void MainWindow::killFile () { - if (m_fnameWE.size () && - !(m_saveAll || (m_saveDecoded && m_bDecoded) || m_fnameWE == m_fileToSave)) { + if (m_fnameWE.size () && !(m_saveAll || (m_saveDecoded && m_bDecoded))) { QFile f1 {m_fnameWE + ".wav"}; if(f1.exists()) f1.remove(); if(m_mode.startsWith ("WSPR")) { diff --git a/widgets/mainwindow.h b/widgets/mainwindow.h index 132a77754..b4ddee54e 100644 --- a/widgets/mainwindow.h +++ b/widgets/mainwindow.h @@ -608,7 +608,6 @@ private: QString m_cmnd; QString m_cmndP1; QString m_msgSent0; - QString m_fileToSave; QString m_calls; QString m_CQtype; QString m_opCall;