equal
deleted
inserted
replaced
219 CX_DEBUG(("CxuiSettingRadioButtonList - index:%d value:[%s]", index, qPrintable(value.toString()))); |
219 CX_DEBUG(("CxuiSettingRadioButtonList - index:%d value:[%s]", index, qPrintable(value.toString()))); |
220 |
220 |
221 try { |
221 try { |
222 QString current = mEngine->settings().get<QString>(mSettingId); |
222 QString current = mEngine->settings().get<QString>(mSettingId); |
223 CX_DEBUG(("CxuiSettingRadioButtonList - settings model value:[%s]", qPrintable(current))); |
223 CX_DEBUG(("CxuiSettingRadioButtonList - settings model value:[%s]", qPrintable(current))); |
224 if (current != value.toString()) { |
224 // If the changed setting is a scene mode, we need to reset it |
|
225 // because a scene mode related setting might have changed |
|
226 // even though the scene mode itself hadn't |
|
227 if (current != value.toString() || |
|
228 mSettingId == CxeSettingIds::IMAGE_SCENE || |
|
229 mSettingId == CxeSettingIds::VIDEO_SCENE) { |
225 mEngine->settings().set(mSettingId, value.toString()); |
230 mEngine->settings().set(mSettingId, value.toString()); |
226 } |
231 } |
227 } catch (CxeException &e) { |
232 } catch (CxeException &e) { |
228 // ignore error |
233 // ignore error |
229 } |
234 } |