Skip to content
Snippets Groups Projects
Commit c3fe256e authored by callum's avatar callum
Browse files

SOCIAL-437 FIX Viewer crashes opening My Profile panel

parent 4d08333d
No related branches found
No related tags found
No related merge requests found
......@@ -76,17 +76,19 @@ void LLPanelMe::onOpen(const LLSD& key)
{
LLPanelProfile::onOpen(key);
// Force Edit My Profile if this is the first time when user is opening Me Panel (EXT-5068)
bool opened = gSavedSettings.getBOOL("MePanelOpened");
// In some cases Side Tray my call onOpen() twice, check getCollapsed() to be sure this
// is the last time onOpen() is called
if( !opened && !LLSideTray::getInstance()->getCollapsed() )
{
buildEditPanel();
openPanel(mEditPanel, getAvatarId());
gSavedSettings.setBOOL("MePanelOpened", true);
}
// Removed this action as per SOCIAL-431 The first time a new resident opens the profile tab
// in the sidebar, they see the old profile editing panel
//
//// Force Edit My Profile if this is the first time when user is opening Me Panel (EXT-5068)
//bool opened = gSavedSettings.getBOOL("MePanelOpened");
//// In some cases Side Tray my call onOpen() twice, check getCollapsed() to be sure this
//// is the last time onOpen() is called
//if( !opened && !LLSideTray::getInstance()->getCollapsed() )
//{
// buildEditPanel();
// openPanel(mEditPanel, getAvatarId());
// gSavedSettings.setBOOL("MePanelOpened", true);
//}
}
bool LLPanelMe::notifyChildren(const LLSD& info)
......
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