diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2016-02-19 16:58:19 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2016-02-19 16:58:19 +0200 |
commit | 448a8d1814b062cb1086c6915be291dfdbe1620e (patch) | |
tree | 2555e95efc6b56fc97e031a01dade81500479afd /indra | |
parent | 2dcfa3b6bd3ebeeab62174d86f9dc85558bcb7c8 (diff) |
MAINT-6150 [QuickGraphics] Clicking the blank space in the quick graphics floater will select the first Preset
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llpanelpresetspulldown.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/newview/llpanelpresetspulldown.cpp b/indra/newview/llpanelpresetspulldown.cpp index 175f281ca4..70f5fcd2c0 100644 --- a/indra/newview/llpanelpresetspulldown.cpp +++ b/indra/newview/llpanelpresetspulldown.cpp @@ -89,14 +89,18 @@ void LLPanelPresetsPulldown::populatePanel() row["columns"][0]["column"] = "preset_name"; row["columns"][0]["value"] = name; + bool is_selected_preset = false; if (name == gSavedSettings.getString("PresetGraphicActive")) { row["columns"][1]["column"] = "icon"; row["columns"][1]["type"] = "icon"; row["columns"][1]["value"] = "Check_Mark"; + + is_selected_preset = true; } - scroll->addElement(row); + LLScrollListItem* new_item = scroll->addElement(row); + new_item->setSelected(is_selected_preset); } } } |