Look in the right place for temporary files

decoded.txt was not being deleted after a full activity window erase.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@4982 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Bill Somerville 2015-02-21 20:13:28 +00:00
parent c718bfd2fd
commit b79456ed1b

View File

@ -1467,7 +1467,7 @@ void MainWindow::on_EraseButton_clicked() //Erase
m_QSOText.clear();
if((ms-m_msErase)<500) {
ui->decodedTextBrowser->clear();
QFile f("decoded.txt");
QFile f(m_config.temp_dir ().absoluteFilePath ("decoded.txt"));
if(f.exists()) f.remove();
}
m_msErase=ms;
@ -1534,7 +1534,7 @@ void MainWindow::guiUpdate()
if(m_auto or m_tune) {
QFile f("/tmp/txboth");
QFile f(m_config.temp_dir ().absoluteFilePath ("txboth"));
if(f.exists() and fmod(tsec,m_TRperiod) < (1.0 + 85.0*m_nsps/12000.0)) {
bTxTime=true;
}