diff options
author | andreykproductengine <akleshchev@productengine.com> | 2014-05-12 20:01:20 +0300 |
---|---|---|
committer | andreykproductengine <akleshchev@productengine.com> | 2014-05-12 20:01:20 +0300 |
commit | b36458a98fb3aeb63d2aca5e3249c7aa508192c8 (patch) | |
tree | 34b4d349814cc52d38fc45e0d06bf478aa06fa0e /indra/newview | |
parent | 7fb4b417ce2048305eab6f1dbf51276697a94ff1 (diff) |
MAINT-1734 FIXED Avatar chooser panel is empty the session after an avatar is chosen.
Diffstat (limited to 'indra/newview')
-rwxr-xr-x | indra/newview/llfloateravatar.cpp | 8 | ||||
-rwxr-xr-x | indra/newview/llmediactrl.cpp | 10 | ||||
-rwxr-xr-x | indra/newview/llmediactrl.h | 1 |
3 files changed, 19 insertions, 0 deletions
diff --git a/indra/newview/llfloateravatar.cpp b/indra/newview/llfloateravatar.cpp index bdc5b581a9..31adf5b61e 100755 --- a/indra/newview/llfloateravatar.cpp +++ b/indra/newview/llfloateravatar.cpp @@ -34,6 +34,7 @@ #include "llfloateravatar.h" #include "lluictrlfactory.h" +#include "llmediactrl.h" LLFloaterAvatar::LLFloaterAvatar(const LLSD& key) @@ -43,6 +44,13 @@ LLFloaterAvatar::LLFloaterAvatar(const LLSD& key) LLFloaterAvatar::~LLFloaterAvatar() { + LLMediaCtrl* avatar_picker = findChild<LLMediaCtrl>("avatar_picker_contents"); + if (avatar_picker) + { + avatar_picker->navigateStop(); + avatar_picker->clearCache(); //images are reloading each time already + avatar_picker->unloadMediaSource(); + } } BOOL LLFloaterAvatar::postBuild() diff --git a/indra/newview/llmediactrl.cpp b/indra/newview/llmediactrl.cpp index 323445afa6..5490605c1b 100755 --- a/indra/newview/llmediactrl.cpp +++ b/indra/newview/llmediactrl.cpp @@ -504,6 +504,16 @@ void LLMediaCtrl::navigateForward() //////////////////////////////////////////////////////////////////////////////// // +void LLMediaCtrl::navigateStop() +{ + if (mMediaSource && mMediaSource->hasMedia()) + { + mMediaSource->getMediaPlugin()->browse_stop(); + } +} + +//////////////////////////////////////////////////////////////////////////////// +// bool LLMediaCtrl::canNavigateBack() { if (mMediaSource) diff --git a/indra/newview/llmediactrl.h b/indra/newview/llmediactrl.h index 5978a7a344..086b384a72 100755 --- a/indra/newview/llmediactrl.h +++ b/indra/newview/llmediactrl.h @@ -99,6 +99,7 @@ public: void navigateBack(); void navigateHome(); void navigateForward(); + void navigateStop(); void navigateToLocalPage( const std::string& subdir, const std::string& filename_in ); bool canNavigateBack(); bool canNavigateForward(); |