diff options
author | simon <none@none> | 2014-04-21 13:04:07 -0700 |
---|---|---|
committer | simon <none@none> | 2014-04-21 13:04:07 -0700 |
commit | fdb28bccb92d121f1b3dfc068a50d5cc3db43ce9 (patch) | |
tree | 391f32cc407d6e9c14bd4804b7ece4f53df3250c /indra/newview/llinventorypanel.h | |
parent | 80eafe2ff3b235b6355ae2f20e8301374623e6ea (diff) | |
parent | a5a0a0b1362da5d00cc6d09bb841ef6167bb2922 (diff) |
Merge downstream code
Diffstat (limited to 'indra/newview/llinventorypanel.h')
-rwxr-xr-x | indra/newview/llinventorypanel.h | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/indra/newview/llinventorypanel.h b/indra/newview/llinventorypanel.h index 00a90325ad..c0ce513694 100755 --- a/indra/newview/llinventorypanel.h +++ b/indra/newview/llinventorypanel.h @@ -181,7 +181,7 @@ public: LLInventoryFilter::EFolderShow getShowFolderState(); // This method is called when something has changed about the inventory. void modelChanged(U32 mask); - LLFolderView* getRootFolder(); + LLFolderView* getRootFolder() { return mFolderRoot.get(); } LLUUID getRootFolderID(); LLScrollContainer* getScrollableContainer() { return mScroller; } @@ -217,8 +217,11 @@ public: void setSelectionByID(const LLUUID& obj_id, BOOL take_keyboard_focus); void updateSelection(); - LLFolderViewModelInventory* getFolderViewModel(); - const LLFolderViewModelInventory* getFolderViewModel() const; + LLFolderViewModelInventory* getFolderViewModel() { return &mInventoryViewModel; } + const LLFolderViewModelInventory* getFolderViewModel() const { return &mInventoryViewModel; } + + // Clean up stuff when the folder root gets deleted + void clearFolderRoot(); protected: void openStartFolderOrMyInventory(); // open the first level of inventory @@ -233,7 +236,7 @@ protected: bool mShowItemLinkOverlays; // Shows link graphic over inventory item icons bool mShowEmptyMessage; - LLFolderView* mFolderRoot; + LLHandle<LLFolderView> mFolderRoot; LLScrollContainer* mScroller; LLFolderViewModelInventory mInventoryViewModel; |