camerauis/cameraxui/cxui/src/cxuisettingradiobuttonlist.cpp
changeset 56 01e205c615b9
parent 48 42ba2d16bf40
equal deleted inserted replaced
48:42ba2d16bf40 56:01e205c615b9
   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             }