mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-26 14:18:38 -05:00
Fix a defect that could cause mis-naming a .wav file in fast modes.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@6914 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
4f0cfd6800
commit
596b62b37e
@ -1282,7 +1282,9 @@ void MainWindow::fastSink(qint64 frames)
|
|||||||
}
|
}
|
||||||
if(!m_diskData) { // Always save; may delete later
|
if(!m_diskData) { // Always save; may delete later
|
||||||
QDateTime now {QDateTime::currentDateTimeUtc()};
|
QDateTime now {QDateTime::currentDateTimeUtc()};
|
||||||
auto const& period_start = now.addSecs (-now.time ().second () % m_TRperiod);
|
int n=now.time().second() % m_TRperiod;
|
||||||
|
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_fnameWE = m_config.save_directory ().absoluteFilePath (period_start.toString ("yyMMdd_hhmmss"));
|
||||||
m_fileToSave.clear ();
|
m_fileToSave.clear ();
|
||||||
// the following is potential a threading hazard - not a good
|
// the following is potential a threading hazard - not a good
|
||||||
|
Loading…
Reference in New Issue
Block a user