mirror of
https://github.com/f4exb/sdrangel.git
synced 2026-06-08 08:54:49 -04:00
Make the settings location appear in the log and in the about panel of the GUI also
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
MainSettings::MainSettings() : m_audioDeviceManager(0)
|
||||
{
|
||||
resetToDefaults();
|
||||
qInfo("MainSettings::MainSettings: settings file: format: %d location: %s", getFileFormat(), qPrintable(getFileLocation()));
|
||||
}
|
||||
|
||||
MainSettings::~MainSettings()
|
||||
@@ -22,6 +23,18 @@ MainSettings::~MainSettings()
|
||||
}
|
||||
}
|
||||
|
||||
const QString& MainSettings::getFileLocation() const
|
||||
{
|
||||
QSettings s;
|
||||
return s.fileName();
|
||||
}
|
||||
|
||||
int MainSettings::getFileFormat() const
|
||||
{
|
||||
QSettings s;
|
||||
return (int) s.format();
|
||||
}
|
||||
|
||||
void MainSettings::load()
|
||||
{
|
||||
QSettings s;
|
||||
|
||||
Reference in New Issue
Block a user