mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2025-06-25 06:35:17 -04:00
Create Save Directory if it does not yet exist.
This commit is contained in:
parent
9d5f3858d4
commit
f42a1bb357
@ -415,6 +415,8 @@ void MainWindow::dataSink(int k)
|
|||||||
m_dateTime=t.toString("yyMMdd_hhmm");
|
m_dateTime=t.toString("yyMMdd_hhmm");
|
||||||
decode(); //Start the decoder
|
decode(); //Start the decoder
|
||||||
if(m_saveAll and !m_diskData and (m_nTx30<5 and m_nTx60<10)) {
|
if(m_saveAll and !m_diskData and (m_nTx30<5 and m_nTx60<10)) {
|
||||||
|
QDir dir(m_saveDir);
|
||||||
|
if (!dir.exists()) dir.mkpath(".");
|
||||||
QString fname=m_saveDir + "/" + t.date().toString("yyMMdd") + "_" +
|
QString fname=m_saveDir + "/" + t.date().toString("yyMMdd") + "_" +
|
||||||
t.time().toString("hhmm");
|
t.time().toString("hhmm");
|
||||||
fname += ".iq";
|
fname += ".iq";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user