diff options
author | Mike Antipov <mantipov@productengine.com> | 2010-01-15 20:18:22 +0200 |
---|---|---|
committer | Mike Antipov <mantipov@productengine.com> | 2010-01-15 20:18:22 +0200 |
commit | c3c0b5ed47589b1074c42aff59cb33b97b62e0a1 (patch) | |
tree | ac1d9aab8f1861fed1d77930035dc5476b529a9c /indra/newview/llviewerinventory.h | |
parent | 0a5d6198ced40ad5f181628fcf6740161114ad42 (diff) |
Fixed normal bug EXT-4312 (Landmark occupy random location in the 'Favorites Bar' accordion if drag-and-drop it)
-- added LLInventoryCallback to rearrange favorite landmarks properly after new on is added.
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llviewerinventory.h')
-rw-r--r-- | indra/newview/llviewerinventory.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/indra/newview/llviewerinventory.h b/indra/newview/llviewerinventory.h index 412a2c66e6..c4b7fdaa23 100644 --- a/indra/newview/llviewerinventory.h +++ b/indra/newview/llviewerinventory.h @@ -279,6 +279,18 @@ public: void fire(const LLUUID& inv_item); }; +class AddFavoriteLandmarkCallback : public LLInventoryCallback +{ +public: + AddFavoriteLandmarkCallback() : mTargetLandmarkId(LLUUID::null) {} + void setTargetLandmarkId(const LLUUID& target_uuid) { mTargetLandmarkId = target_uuid; } + +private: + void fire(const LLUUID& inv_item); + + LLUUID mTargetLandmarkId; +}; + // misc functions //void inventory_reliable_callback(void**, S32 status); |