Port back to "output" and "device" settings in lowercase
Was accidentally changed to capitalized.
This commit is contained in:
@@ -125,8 +125,19 @@ void BackendSettingsPage::Load() {
|
||||
Settings s;
|
||||
s.beginGroup(kSettingsGroup);
|
||||
|
||||
output_current_ = s.value(kOutput, QString()).toString();
|
||||
device_current_ = s.value(kDevice, QVariant());
|
||||
if (s.contains(kOutputU)) {
|
||||
output_current_ = s.value(kOutputU).toString();
|
||||
}
|
||||
else if (s.contains(kOutput)) {
|
||||
output_current_ = s.value(kOutput).toString();
|
||||
}
|
||||
|
||||
if (s.contains(kDeviceU)) {
|
||||
device_current_ = s.value(kDeviceU);
|
||||
}
|
||||
else if (s.contains(kDevice)) {
|
||||
device_current_ = s.value(kDevice);
|
||||
}
|
||||
|
||||
#ifdef HAVE_ALSA
|
||||
ui_->lineedit_device->show();
|
||||
@@ -389,6 +400,20 @@ void BackendSettingsPage::Save() {
|
||||
Settings s;
|
||||
s.beginGroup(kSettingsGroup);
|
||||
|
||||
if (s.contains(kEngineU)) {
|
||||
s.remove(kEngineU);
|
||||
}
|
||||
if (s.contains(kEngine)) {
|
||||
s.remove(kEngine);
|
||||
}
|
||||
|
||||
if (s.contains(kOutputU)) {
|
||||
s.remove(kOutputU);
|
||||
}
|
||||
if (s.contains(kDeviceU)) {
|
||||
s.remove(kDeviceU);
|
||||
}
|
||||
|
||||
s.setValue(kOutput, output_name);
|
||||
s.setValue(kDevice, device_value);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user