diff options
author | Andrey Lihatskiy <andreylproductengine@lindenlab.com> | 2016-05-23 20:45:24 +0300 |
---|---|---|
committer | Andrey Lihatskiy <andreylproductengine@lindenlab.com> | 2016-05-23 20:45:24 +0300 |
commit | 380bbc01c9e5c69e71e31da414eb4d746df2c9ab (patch) | |
tree | 86d0cf51f1cf756a049d23f0f765d3607f45198e /indra/newview/llfloaterdeleteprefpreset.cpp | |
parent | 709c15dc233134370425687cfd429b48d6205afa (diff) | |
parent | 8edfdc617df6e282570521a9076d077699e632e5 (diff) |
Merged in andreyl_productengine/viewer-lion-marchcat (pull request #42)
MAINT-6424 Disable the delete button for empty graphics presets list
Diffstat (limited to 'indra/newview/llfloaterdeleteprefpreset.cpp')
-rw-r--r-- | indra/newview/llfloaterdeleteprefpreset.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llfloaterdeleteprefpreset.cpp b/indra/newview/llfloaterdeleteprefpreset.cpp index 7dedbbf984..c0888db3bc 100644 --- a/indra/newview/llfloaterdeleteprefpreset.cpp +++ b/indra/newview/llfloaterdeleteprefpreset.cpp @@ -53,6 +53,8 @@ BOOL LLFloaterDeletePrefPreset::postBuild() getChild<LLButton>("cancel")->setCommitCallback(boost::bind(&LLFloaterDeletePrefPreset::onBtnCancel, this)); LLPresetsManager::instance().setPresetListChangeCallback(boost::bind(&LLFloaterDeletePrefPreset::onPresetsListChange, this)); + onPresetsListChange(); // ensure that delete button is disabled when the list is empty + return TRUE; } |