diff options
author | Merov Linden <merov@lindenlab.com> | 2013-11-15 15:12:11 -0800 |
---|---|---|
committer | Merov Linden <merov@lindenlab.com> | 2013-11-15 15:12:11 -0800 |
commit | 6ec99570cd86a89ed6367f81d6b0cccd7fe0e913 (patch) | |
tree | 5440488d03ad55cfd3bee06a08189790ab7b1888 /indra/llui/llfolderview.h | |
parent | 148c3780e164d5bc94fa14b418e85fee72f9fd39 (diff) |
MAINT-3320 : Fixed! Inventory panels are not resistant to folder root deletion, using handle instead of pointer and cleaning things consistently
Diffstat (limited to 'indra/llui/llfolderview.h')
-rwxr-xr-x | indra/llui/llfolderview.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/indra/llui/llfolderview.h b/indra/llui/llfolderview.h index 11fccdace4..5b83049e5c 100755 --- a/indra/llui/llfolderview.h +++ b/indra/llui/llfolderview.h @@ -229,7 +229,7 @@ public: void setCallbackRegistrar(LLUICtrl::CommitCallbackRegistry::ScopedRegistrar* registrar) { mCallbackRegistrar = registrar; } - LLPanel* getParentPanel() { return mParentPanel; } + LLPanel* getParentPanel() { return mParentPanel.get(); } // DEBUG only void dumpSelectionInformation(); @@ -238,6 +238,9 @@ public: bool useLabelSuffix() { return mUseLabelSuffix; } void updateMenu(); + // Note: We may eventually have to move that method up the hierarchy to LLFolderViewItem. + LLHandle<LLFolderView> getHandle() const { return getDerivedHandle<LLFolderView>(); } + private: void updateMenuOptions(LLMenuGL* menu); void updateRenamerPosition(); @@ -295,7 +298,7 @@ protected: S32 mMinWidth; BOOL mDragAndDropThisFrame; - LLPanel* mParentPanel; + LLHandle<LLPanel> mParentPanel; LLFolderViewModelInterface* mViewModel; |