mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-15 04:41:55 -05:00
Print the settings path at the beginning of the main window or main core constructor
This commit is contained in:
parent
3826b1faeb
commit
dbf5fb895e
@ -28,6 +28,7 @@
|
||||
#include <QKeyEvent>
|
||||
#include <QResource>
|
||||
#include <QFontDatabase>
|
||||
#include <QStandardPaths>
|
||||
|
||||
#include <plugin/plugininstancegui.h>
|
||||
#include <plugin/plugininstancegui.h>
|
||||
@ -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());
|
||||
|
||||
|
@ -16,10 +16,12 @@
|
||||
// along with this program. If not, see <http://www.gnu.org/licenses/>. //
|
||||
///////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
#include <unistd.h>
|
||||
|
||||
#include <QDebug>
|
||||
#include <QSysInfo>
|
||||
#include <QResource>
|
||||
#include <unistd.h>
|
||||
#include <QStandardPaths>
|
||||
|
||||
#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());
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user