diff options
Diffstat (limited to 'indra/newview/llinventorymodel.cpp')
-rw-r--r-- | indra/newview/llinventorymodel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/indra/newview/llinventorymodel.cpp b/indra/newview/llinventorymodel.cpp index 17a8b84472..49f2256f61 100644 --- a/indra/newview/llinventorymodel.cpp +++ b/indra/newview/llinventorymodel.cpp @@ -930,6 +930,11 @@ void LLInventoryModel::removeObserver(LLInventoryObserver* observer) mObservers.erase(observer); } +BOOL LLInventoryModel::containsObserver(LLInventoryObserver* observer) +{ + return mObservers.find(observer) != mObservers.end(); +} + // Call this method when it's time to update everyone on a new state, // by default, the inventory model will not update observers // automatically. |