mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-09-06 07:07:49 -04:00
Be sure the saveFileName is static.
This commit is contained in:
parent
059096534b
commit
9c45e510ff
@ -916,16 +916,16 @@ void MainWindow::decode() //decode()
|
|||||||
decodes_.ncand=0;
|
decodes_.ncand=0;
|
||||||
decodes_.nQDecoderDone=0;
|
decodes_.nQDecoderDone=0;
|
||||||
|
|
||||||
QString saveFileName="NoSave";
|
m_saveFileName="NoSave";
|
||||||
if(!m_diskData) {
|
if(!m_diskData) {
|
||||||
QDateTime t = QDateTime::currentDateTimeUtc();
|
QDateTime t = QDateTime::currentDateTimeUtc();
|
||||||
m_dateTime=t.toString("yyMMdd_hhmm");
|
m_dateTime=t.toString("yyMMdd_hhmm");
|
||||||
QDir dir(m_saveDir);
|
QDir dir(m_saveDir);
|
||||||
if (!dir.exists()) dir.mkpath(".");
|
if (!dir.exists()) dir.mkpath(".");
|
||||||
saveFileName=m_saveDir + "/" + m_dateTime + ".qm";
|
m_saveFileName=m_saveDir + "/" + m_dateTime + ".qm";
|
||||||
}
|
}
|
||||||
|
|
||||||
// qDebug() << "aa" << m_n60 << datcom_.nhsym << m_revision << saveFileName;
|
// qDebug() << "aa" << m_n60 << datcom_.nhsym << m_revision << m_saveFileName;
|
||||||
|
|
||||||
//No need to call decoder for first half, if we transmitted in the first half:
|
//No need to call decoder for first half, if we transmitted in the first half:
|
||||||
if((datcom_.nhsym<=200) and (m_nTx30a>5)) return;
|
if((datcom_.nhsym<=200) and (m_nTx30a>5)) return;
|
||||||
@ -933,10 +933,10 @@ void MainWindow::decode() //decode()
|
|||||||
//No need to call decoder in second half, if we transmitted in that half:
|
//No need to call decoder in second half, if we transmitted in that half:
|
||||||
if((datcom_.nhsym>200) and (m_nTx30b>5)) return;
|
if((datcom_.nhsym>200) and (m_nTx30b>5)) return;
|
||||||
|
|
||||||
int len1=saveFileName.length();
|
int len1=m_saveFileName.length();
|
||||||
int len2=m_revision.length();
|
int len2=m_revision.length();
|
||||||
watcher3.setFuture(QtConcurrent::run (std::bind (q65c_,
|
watcher3.setFuture(QtConcurrent::run (std::bind (q65c_,
|
||||||
saveFileName.toLatin1().constData(),
|
m_saveFileName.toLatin1().constData(),
|
||||||
m_revision.toLatin1().constData(), len1, len2)));
|
m_revision.toLatin1().constData(), len1, len2)));
|
||||||
decodeBusy(true);
|
decodeBusy(true);
|
||||||
}
|
}
|
||||||
|
@ -171,6 +171,7 @@ private:
|
|||||||
QString m_mode;
|
QString m_mode;
|
||||||
QString m_UTC0="";
|
QString m_UTC0="";
|
||||||
QString m_revision;
|
QString m_revision;
|
||||||
|
QString m_saveFileName;
|
||||||
|
|
||||||
QDateTime m_dateTimeSeqStart; //Nominal start time of Rx sequence about to be decoded
|
QDateTime m_dateTimeSeqStart; //Nominal start time of Rx sequence about to be decoded
|
||||||
QHash<QString,bool> m_worked;
|
QHash<QString,bool> m_worked;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user