Only save settings that has been changed
This commit is contained in:
@@ -56,7 +56,8 @@ void TranscoderOptionsMP3::Load() {
|
||||
|
||||
if (s.value("target", 1).toInt() == 0) {
|
||||
ui_->target_quality->setChecked(true);
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
ui_->target_bitrate->setChecked(true);
|
||||
}
|
||||
|
||||
@@ -66,6 +67,8 @@ void TranscoderOptionsMP3::Load() {
|
||||
ui_->encoding_engine_quality->setCurrentIndex(s.value("encoding-engine-quality", 1).toInt());
|
||||
ui_->mono->setChecked(s.value("mono", false).toBool());
|
||||
|
||||
s.endGroup();
|
||||
|
||||
}
|
||||
|
||||
void TranscoderOptionsMP3::Save() {
|
||||
@@ -80,6 +83,8 @@ void TranscoderOptionsMP3::Save() {
|
||||
s.setValue("encoding-engine-quality", ui_->encoding_engine_quality->currentIndex());
|
||||
s.setValue("mono", ui_->mono->isChecked());
|
||||
|
||||
s.endGroup();
|
||||
|
||||
}
|
||||
|
||||
void TranscoderOptionsMP3::QualitySliderChanged(int value) {
|
||||
|
||||
Reference in New Issue
Block a user