diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/murmur/Meta.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/murmur/Meta.cpp b/src/murmur/Meta.cpp index d066f6cf9..c9e7f45ed 100644 --- a/src/murmur/Meta.cpp +++ b/src/murmur/Meta.cpp @@ -209,6 +209,18 @@ void MetaParams::read(QString fname) { qsSettings = new QSettings(qsAbsSettingsFilePath, QSettings::IniFormat); qsSettings->setIniCodec("UTF-8"); + qsSettings->sync(); + switch (qsSettings->status()) { + case QSettings::NoError: + break; + case QSettings::AccessError: + qFatal("Access error while trying to access %s", qPrintable(qsSettings->fileName())); + break; + case QSettings::FormatError: + qFatal("Your INI file at %s is invalid - check for syntax errors!", qPrintable(qsSettings->fileName())); + break; + } + qWarning("Initializing settings from %s (basepath %s)", qPrintable(qsSettings->fileName()), qPrintable(qdBasePath.absolutePath())); |