camerauis/cameraxui/cxui/src/cxuisettingradiobuttonlist.cpp
changeset 52 7e18d488ac5f
parent 46 c826656d6714
child 64 8ab66fc302e6
--- a/camerauis/cameraxui/cxui/src/cxuisettingradiobuttonlist.cpp	Fri Aug 06 10:03:37 2010 +0300
+++ b/camerauis/cameraxui/cxui/src/cxuisettingradiobuttonlist.cpp	Mon Aug 23 13:50:05 2010 +0300
@@ -221,7 +221,12 @@
             try {
                 QString current = mEngine->settings().get<QString>(mSettingId);
                 CX_DEBUG(("CxuiSettingRadioButtonList - settings model value:[%s]", qPrintable(current)));
-                if (current != value.toString()) {
+                // If the changed setting is a scene mode, we need to reset it
+                // because a scene mode related setting might have changed
+                // even though the scene mode itself hadn't
+                if (current != value.toString() ||
+                    mSettingId == CxeSettingIds::IMAGE_SCENE ||
+                    mSettingId == CxeSettingIds::VIDEO_SCENE) {
                     mEngine->settings().set(mSettingId, value.toString());
                 }
             } catch (CxeException &e) {