diff --git a/sdrgui/mainwindow.cpp b/sdrgui/mainwindow.cpp index a8f399157..8d82a199a 100644 --- a/sdrgui/mainwindow.cpp +++ b/sdrgui/mainwindow.cpp @@ -28,6 +28,7 @@ #include #include #include +#include #include #include @@ -99,6 +100,14 @@ MainWindow::MainWindow(qtwebapp::LoggerWithFile *logger, const MainParser& parse { qDebug() << "MainWindow::MainWindow: start"; +#if QT_VERSION >= 0x050500 + QString path = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation); + qInfo("MainWindow::MainWindow: settings path: %s", qPrintable(path)); +#else + QString path = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation); + qInfo("MainWindow::MainWindow: settings path: %s", qPrintable(path)); +#endif + m_instance = this; m_settings.setAudioDeviceManager(m_dspEngine->getAudioDeviceManager()); diff --git a/sdrsrv/maincore.cpp b/sdrsrv/maincore.cpp index 3782e7dc6..4a03540fd 100644 --- a/sdrsrv/maincore.cpp +++ b/sdrsrv/maincore.cpp @@ -16,10 +16,12 @@ // along with this program. If not, see . // /////////////////////////////////////////////////////////////////////////////////// +#include + #include #include #include -#include +#include #include "dsp/dspengine.h" #include "dsp/dspdevicesourceengine.h" @@ -58,6 +60,14 @@ MainCore::MainCore(qtwebapp::LoggerWithFile *logger, const MainParser& parser, Q { qDebug() << "MainCore::MainCore: start"; +#if QT_VERSION >= 0x050500 + QString path = QStandardPaths::writableLocation(QStandardPaths::AppConfigLocation); + qInfo("MainCore::MainCore: settings path: %s", qPrintable(path)); +#else + QString path = QStandardPaths::writableLocation(QStandardPaths::ConfigLocation); + qInfo("MainCore::MainCore: settings path: %s", qPrintable(path)); +#endif + m_instance = this; m_settings.setAudioDeviceManager(m_dspEngine->getAudioDeviceManager());