Fix saving initial settings

This commit is contained in:
Jonas Kvinge
2020-10-12 17:20:18 +02:00
parent e3624eed30
commit 0fd61945c7
18 changed files with 32 additions and 27 deletions

View File

@@ -86,8 +86,6 @@ void BackendSettingsPage::Load() {
engineloaded_ = false;
QSettings s;
if (!s.contains(kSettingsGroup)) set_changed();
s.beginGroup(kSettingsGroup);
Engine::EngineType enginetype = Engine::EngineTypeFromName(s.value("engine", EngineName(Engine::None)).toString());
@@ -185,6 +183,7 @@ void BackendSettingsPage::Load() {
RgPreampChanged(ui_->stickslider_replaygainpreamp->value());
Init(ui_->layout_backendsettingspage->parentWidget());
if (!QSettings().childGroups().contains(kSettingsGroup)) set_changed();
// Check if engine, output or device is set to a different setting than the configured to force saving settings.