EXT-7963 FIXED Edit Outfit > Add More > Do not switch to next item type after add/replace

- Added callback to wear item from Add More panel on doubleclick
- To keep the list in its existing state and do not change the contents of the Add More panel to the next listed unworn item after the user wears an item, check if the item is not dummy. Dummy icons have no ids.

Reviewed by Mike Antipov and Neal Orman at https://codereview.productengine.com/secondlife/r/647/

--HG--
branch : product-engine
master
Paul Guslisty 2010-06-24 15:13:30 +03:00
parent 249d014b67
commit 370ddfb03e
2 changed files with 7 additions and 1 deletions

View File

@ -374,7 +374,12 @@ void LLCOFWearables::refresh()
value_it_end = values.end();
value_it != value_it_end; ++value_it)
{
list->selectItemByValue(*value_it);
// value_it may be null because of dummy items
// Dummy items have no ID
if(value_it->asUUID().notNull())
{
list->selectItemByValue(*value_it);
}
}
}
}

View File

@ -387,6 +387,7 @@ BOOL LLPanelOutfitEdit::postBuild()
mWearableItemsList = getChild<LLInventoryItemsList>("list_view");
mWearableItemsList->setCommitOnSelectionChange(true);
mWearableItemsList->setCommitCallback(boost::bind(&LLPanelOutfitEdit::onInventorySelectionChange, this));
mWearableItemsList->setDoubleClickCallback(boost::bind(&LLPanelOutfitEdit::onPlusBtnClicked, this));
mSaveComboBtn.reset(new LLSaveOutfitComboBtn(this));
return TRUE;