Skip to content
Snippets Groups Projects
Unverified Commit 11244680 authored by Maxim Nikolenko's avatar Maxim Nikolenko Committed by GitHub
Browse files

SL-18486 Complete Avatars floater is blank.

parent cfc2d289
No related branches found
No related tags found
No related merge requests found
...@@ -44,17 +44,21 @@ LLFloaterAvatar::LLFloaterAvatar(const LLSD& key) ...@@ -44,17 +44,21 @@ LLFloaterAvatar::LLFloaterAvatar(const LLSD& key)
LLFloaterAvatar::~LLFloaterAvatar() LLFloaterAvatar::~LLFloaterAvatar()
{ {
LLMediaCtrl* avatar_picker = findChild<LLMediaCtrl>("avatar_picker_contents"); if (mAvatarPicker)
if (avatar_picker)
{ {
avatar_picker->navigateStop(); mAvatarPicker->navigateStop();
avatar_picker->clearCache(); //images are reloading each time already mAvatarPicker->clearCache(); //images are reloading each time already
avatar_picker->unloadMediaSource(); mAvatarPicker->unloadMediaSource();
} }
} }
BOOL LLFloaterAvatar::postBuild() BOOL LLFloaterAvatar::postBuild()
{ {
mAvatarPicker = findChild<LLMediaCtrl>("avatar_picker_contents");
if (mAvatarPicker)
{
mAvatarPicker->clearCache();
}
enableResizeCtrls(true, true, false); enableResizeCtrls(true, true, false);
return TRUE; return TRUE;
} }
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#define LL_FLOATER_AVATAR_H #define LL_FLOATER_AVATAR_H
#include "llfloater.h" #include "llfloater.h"
class LLMediaCtrl;
class LLFloaterAvatar: class LLFloaterAvatar:
public LLFloater public LLFloater
...@@ -38,6 +39,8 @@ class LLFloaterAvatar: ...@@ -38,6 +39,8 @@ class LLFloaterAvatar:
LLFloaterAvatar(const LLSD& key); LLFloaterAvatar(const LLSD& key);
/*virtual*/ ~LLFloaterAvatar(); /*virtual*/ ~LLFloaterAvatar();
/*virtual*/ BOOL postBuild(); /*virtual*/ BOOL postBuild();
LLMediaCtrl* mAvatarPicker;
}; };
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment