summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2020-03-04 05:31:22 +0200
committerAndrey Lihatskiy <alihatskiy@productengine.com>2020-03-04 05:31:22 +0200
commitafd45506c12c93ff4b705d72de249005b9c27944 (patch)
tree5221abec61359607f4058be303d02391002f41fc /indra
parent6b283f166b0578172962b05145d928a73a322926 (diff)
SL-12792 Made "save as a new preset" a default option
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/llfloatercamera.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/indra/newview/llfloatercamera.cpp b/indra/newview/llfloatercamera.cpp
index 860005bfbe..cf25e35f63 100644
--- a/indra/newview/llfloatercamera.cpp
+++ b/indra/newview/llfloatercamera.cpp
@@ -609,11 +609,7 @@ void LLFloaterCamera::onSavePreset()
LLFloaterReg::hideInstance("delete_pref_preset", PRESETS_CAMERA);
LLFloaterReg::hideInstance("load_pref_preset", PRESETS_CAMERA);
- LLSD key;
- std::string current_preset = gSavedSettings.getString("PresetCameraActive");
- bool is_custom_preset = current_preset != "" && !LLPresetsManager::getInstance()->isDefaultCameraPreset(current_preset);
- key["index"] = is_custom_preset ? 1 : 0;
- LLFloaterReg::showInstance("save_camera_preset", key);
+ LLFloaterReg::showInstance("save_camera_preset");
}
void LLFloaterCamera::onCustomPresetSelected()