Make sure we only do a show in inventory if a sinle item is given. Enything else makes no sense or bombs

This commit is contained in:
Melanie
2013-04-28 23:30:51 +02:00
parent 2cfafadbcd
commit c1e31c403e

View File

@@ -1238,6 +1238,7 @@ void open_inventory_offer(const uuid_vec_t& objects, const std::string& from_nam
}
if (gSavedSettings.getBOOL("ShowInInventory") &&
objects.size() == 1 && item != NULL &&
asset_type != LLAssetType::AT_CALLINGCARD &&
item->getInventoryType() != LLInventoryType::IT_ATTACHMENT &&
!from_name.empty())