From f42a1bb35775b10b4b0ec18247d6109d40e34e21 Mon Sep 17 00:00:00 2001 From: Uwe Risse Date: Sat, 16 Dec 2023 15:40:43 +0100 Subject: [PATCH] Create Save Directory if it does not yet exist. --- qmap/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/qmap/mainwindow.cpp b/qmap/mainwindow.cpp index dc77b6048..1468a3128 100644 --- a/qmap/mainwindow.cpp +++ b/qmap/mainwindow.cpp @@ -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";