Only save settings that has been changed
This commit is contained in:
@@ -60,6 +60,8 @@ void TranscoderOptionsSpeex::Load() {
|
||||
ui_->complexity->setValue(s.value("complexity", 3).toInt());
|
||||
ui_->nframes->setValue(s.value("nframes", 1).toInt());
|
||||
|
||||
s.endGroup();
|
||||
|
||||
}
|
||||
|
||||
void TranscoderOptionsSpeex::Save() {
|
||||
@@ -77,4 +79,6 @@ void TranscoderOptionsSpeex::Save() {
|
||||
s.setValue("complexity", ui_->complexity->value());
|
||||
s.setValue("nframes", ui_->nframes->value());
|
||||
|
||||
s.endGroup();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user