summaryrefslogtreecommitdiff
path: root/indra/newview/llfloaterloadprefpreset.cpp
diff options
context:
space:
mode:
authorAndrey Lihatskiy <alihatskiy@productengine.com>2020-09-23 01:48:27 +0300
committerAndrey Lihatskiy <alihatskiy@productengine.com>2020-09-23 01:48:27 +0300
commit966f1ac84eeddb30d63b6487e96f5266cdc939b1 (patch)
tree0d59d5aad6d3024e451226019fa5d6258b1ef7ec /indra/newview/llfloaterloadprefpreset.cpp
parentb3b33a03c41cf3e26c080adb9c6cbefb32c1c4de (diff)
parent60ed688026269568a9eef67437dc780f88c92871 (diff)
Merge branch 'master' into DRTVWR-486
Diffstat (limited to 'indra/newview/llfloaterloadprefpreset.cpp')
-rw-r--r--indra/newview/llfloaterloadprefpreset.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/llfloaterloadprefpreset.cpp b/indra/newview/llfloaterloadprefpreset.cpp
index fa17a9d40e..f89daf3e04 100644
--- a/indra/newview/llfloaterloadprefpreset.cpp
+++ b/indra/newview/llfloaterloadprefpreset.cpp
@@ -66,6 +66,11 @@ void LLFloaterLoadPrefPreset::onOpen(const LLSD& key)
EDefaultOptions option = DEFAULT_TOP;
LLPresetsManager::getInstance()->setPresetNamesInComboBox(mSubdirectory, combo, option);
+ std::string preset_graphic_active = gSavedSettings.getString("PresetGraphicActive");
+ if (!preset_graphic_active.empty())
+ {
+ combo->setSimple(preset_graphic_active);
+ }
}
void LLFloaterLoadPrefPreset::onPresetsListChange()
@@ -74,6 +79,11 @@ void LLFloaterLoadPrefPreset::onPresetsListChange()
EDefaultOptions option = DEFAULT_TOP;
LLPresetsManager::getInstance()->setPresetNamesInComboBox(mSubdirectory, combo, option);
+ std::string preset_graphic_active = gSavedSettings.getString("PresetGraphicActive");
+ if (!preset_graphic_active.empty())
+ {
+ combo->setSimple(preset_graphic_active);
+ }
}
void LLFloaterLoadPrefPreset::onBtnCancel()