diff options
author | Oz Linden <oz@lindenlab.com> | 2015-09-28 15:00:17 -0400 |
---|---|---|
committer | Oz Linden <oz@lindenlab.com> | 2015-09-28 15:00:17 -0400 |
commit | 453dee2d21477ad534fa9982b844c40adde9b93e (patch) | |
tree | f98fbe8c5bd501cd4618f52a4d02ebd4718b54cf /indra/newview/llfloaterpreference.cpp | |
parent | e1ce065b8b2f4a01a166ddd90ef7c873e04d0893 (diff) |
MAINT-5542: fix initialization of Default graphics preset so that it is selectable
Diffstat (limited to 'indra/newview/llfloaterpreference.cpp')
-rwxr-xr-x | indra/newview/llfloaterpreference.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/indra/newview/llfloaterpreference.cpp b/indra/newview/llfloaterpreference.cpp index 898e5d5e1f..340959880c 100755 --- a/indra/newview/llfloaterpreference.cpp +++ b/indra/newview/llfloaterpreference.cpp @@ -2422,8 +2422,10 @@ BOOL LLPanelPreferenceGraphics::postBuild() resetDirtyChilds(); setPresetText(); - LLPresetsManager::instance().setPresetListChangeCallback(boost::bind(&LLPanelPreferenceGraphics::onPresetsListChange, this)); - + LLPresetsManager* presetsMgr = LLPresetsManager::getInstance(); + presetsMgr->setPresetListChangeCallback(boost::bind(&LLPanelPreferenceGraphics::onPresetsListChange, this)); + presetsMgr->createMissingDefault(); // a no-op after the first time, but that's ok + return LLPanelPreference::postBuild(); } |