summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterdeleteprefpreset.cpp
diff options
context:
space:
mode:
authormaxim_productengine <mnikolenko@productengine.com>2019-11-08 17:31:59 +0200
committermaxim_productengine <mnikolenko@productengine.com>2019-11-08 17:31:59 +0200
commitdd8128114c8cfe812e1dd8f2cfd449a4050d9aea (patch)
treef80f190fa2821b185728668fce960849ad06d609 /indra/newview/llfloaterdeleteprefpreset.cpp
parentbf5ee32838b9d4c53ff1ab709e2935d8d0b4ec0b (diff)
SL-12186 WIP Minor updates for 'Camera controls' and 'Save preset' floaters
Diffstat (limited to 'indra/newview/llfloaterdeleteprefpreset.cpp')
-rw-r--r--indra/newview/llfloaterdeleteprefpreset.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/llfloaterdeleteprefpreset.cpp b/indra/newview/llfloaterdeleteprefpreset.cpp
index bd62849b42..0765756b43 100644
--- a/indra/newview/llfloaterdeleteprefpreset.cpp
+++ b/indra/newview/llfloaterdeleteprefpreset.cpp
@@ -82,6 +82,13 @@ void LLFloaterDeletePrefPreset::onBtnDelete()
args["NAME"] = name;
LLNotificationsUtil::add("PresetNotDeleted", args);
}
+ else if (mSubdirectory == PRESETS_CAMERA)
+ {
+ if (gSavedSettings.getString("PresetCameraActive") == name)
+ {
+ gSavedSettings.setString("PresetCameraActive", "");
+ }
+ }
closeFloater();
}