Create Save Directory if it does not yet exist.

This commit is contained in:
Uwe Risse 2023-12-16 15:40:43 +01:00
parent 9d5f3858d4
commit f42a1bb357

View File

@ -415,6 +415,8 @@ void MainWindow::dataSink(int k)
m_dateTime=t.toString("yyMMdd_hhmm");
decode(); //Start the decoder
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") + "_" +
t.time().toString("hhmm");
fname += ".iq";