diff options
author | Cho <cho@lindenlab.com> | 2014-06-17 18:00:25 +0100 |
---|---|---|
committer | Cho <cho@lindenlab.com> | 2014-06-17 18:00:25 +0100 |
commit | 89ea1cbc7acee8878c36a5795dd3df12a913c513 (patch) | |
tree | f3d38861f0f3f378a3aa24aa15245b4e140cae33 /indra/newview | |
parent | 8bba5f20681bab14960da28a0b260d9178360709 (diff) |
Made experience picker be created fresh every time the Add button is clicked, for ACME-1526
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/llpanelexperiencelisteditor.cpp | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/indra/newview/llpanelexperiencelisteditor.cpp b/indra/newview/llpanelexperiencelisteditor.cpp index cc44b7a339..3561268063 100644 --- a/indra/newview/llpanelexperiencelisteditor.cpp +++ b/indra/newview/llpanelexperiencelisteditor.cpp @@ -106,15 +106,13 @@ void LLPanelExperienceListEditor::onAdd() { if(!mPicker.isDead()) { - mPicker.get()->setFrontmost(TRUE); + mPicker.markDead(); } - else - { - mKey.generateNewID(); - LLFloaterExperiencePicker* picker=LLFloaterExperiencePicker::show(boost::bind(&LLPanelExperienceListEditor::addExperienceIds, this, _1), mKey, FALSE, TRUE, mFilters, mAdd); - mPicker = picker->getDerivedHandle<LLFloaterExperiencePicker>(); - } + mKey.generateNewID(); + + LLFloaterExperiencePicker* picker=LLFloaterExperiencePicker::show(boost::bind(&LLPanelExperienceListEditor::addExperienceIds, this, _1), mKey, FALSE, TRUE, mFilters, mAdd); + mPicker = picker->getDerivedHandle<LLFloaterExperiencePicker>(); } |