Index: sources/view/settings/VSettings.cpp =================================================================== diff -u -ra75bc5b80ad4ebde50f028b550cd534e589bd059 -rd9b9df9b23da89b4c27f4672ff6e7f570adcc48a --- sources/view/settings/VSettings.cpp (.../VSettings.cpp) (revision a75bc5b80ad4ebde50f028b550cd534e589bd059) +++ sources/view/settings/VSettings.cpp (.../VSettings.cpp) (revision d9b9df9b23da89b4c27f4672ff6e7f570adcc48a) @@ -46,26 +46,23 @@ void VSettings::servicePass_post(const QString &vservicePass) { //TODO The Settings shall be the Singleton SettingsController and modify the MSettings like the others. - Storage::Settings settings; - if ( settings.saveSystem(servicePassGroup(), servicePassKey(), vservicePass) != 0 ) { + if ( Storage::Settings::save(servicePassGroup(), servicePassKey(), vservicePass) != 0 ) { servicePass(""); // FIXME: Notify UI with a message } } void VSettings::roWaterMode_post(const bool &vroWaterMode_post) { //TODO The Settings shall be the Singleton SettingsController and modify the MSettings like the others. - Storage::Settings settings; - if ( settings.saveSystem(roWaterModeGroup(), roWaterModeKey(), QString::number(vroWaterMode_post)) != 0 ) { + if ( Storage::Settings::save(roWaterModeGroup(), roWaterModeKey(), QString::number(vroWaterMode_post)) != 0 ) { roWaterMode(false); // FIXME: Notify UI with a message } } void VSettings::alarmVolume_post(const quint8 &valarmVolume) { //TODO The Settings shall be the Singleton SettingsController and modify the MSettings like the others. - Storage::Settings settings; - settings.saveSystem(alarmVolumeGroup(), alarmVolumeKey(), QString::number(valarmVolume)); + Storage::Settings::save(alarmVolumeGroup(), alarmVolumeKey(), QString::number(valarmVolume)); } void VSettings::onActionReceive(const SettingsData &)