diff options
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/llui/llmenugl.cpp | 28 | ||||
| -rwxr-xr-x | indra/newview/llconversationview.cpp | 18 | ||||
| -rw-r--r-- | indra/newview/llfloaterimsessiontab.cpp | 7 | ||||
| -rw-r--r-- | indra/newview/llpaneloutfitedit.cpp | 2 | 
4 files changed, 31 insertions, 24 deletions
| diff --git a/indra/llui/llmenugl.cpp b/indra/llui/llmenugl.cpp index 93dc13475b..7dcc39950b 100644 --- a/indra/llui/llmenugl.cpp +++ b/indra/llui/llmenugl.cpp @@ -1751,16 +1751,18 @@ void LLMenuGL::setCanTearOff(BOOL tear_off)  bool LLMenuGL::addChild(LLView* view, S32 tab_group)  { -	if (LLMenuGL* menup = dynamic_cast<LLMenuGL*>(view)) +	LLMenuGL* menup = dynamic_cast<LLMenuGL*>(view); +	if (menup)  	{ -		appendMenu(menup); -		return true; +		return appendMenu(menup);  	} -	else if (LLMenuItemGL* itemp = dynamic_cast<LLMenuItemGL*>(view)) +	 +	LLMenuItemGL* itemp = dynamic_cast<LLMenuItemGL*>(view); +	if (itemp)  	{ -		append(itemp); -		return true; +		return append(itemp);  	} +	  	return false;  } @@ -1771,16 +1773,28 @@ bool LLMenuGL::addContextChild(LLView* view, S32 tab_group)  {  	LLContextMenu* context = dynamic_cast<LLContextMenu*>(view);  	if (context) +	{  		return appendContextSubMenu(context); +	}  	LLMenuItemSeparatorGL* separator = dynamic_cast<LLMenuItemSeparatorGL*>(view);  	if (separator) +	{  		return append(separator); +	}  	LLMenuItemGL* item = dynamic_cast<LLMenuItemGL*>(view);  	if (item) +	{  		return append(item); - +	} +	 +	LLMenuGL* menup = dynamic_cast<LLMenuGL*>(view); +	if (menup) +	{ +		return appendMenu(menup); +	} +	  	return false;  } diff --git a/indra/newview/llconversationview.cpp b/indra/newview/llconversationview.cpp index 903dd2a407..16dd0e4565 100755 --- a/indra/newview/llconversationview.cpp +++ b/indra/newview/llconversationview.cpp @@ -202,14 +202,6 @@ void LLConversationViewSession::draw()  	const LLFolderViewItem::Params& default_params = LLUICtrlFactory::getDefaultParams<LLFolderViewItem>();  	const BOOL show_context = (getRoot() ? getRoot()->getShowSelectionContext() : FALSE); -	// we don't draw the open folder arrow in minimized mode -	if (mHasArrow && !mCollapsedMode) -	{ -		// update the rotation angle of open folder arrow -		updateLabelRotation(); -		drawOpenFolderArrow(default_params, sFgColor); -	} -  	// Indicate that flash can start (moot operation if already started, done or not flashing)  	startFlashing(); @@ -232,6 +224,14 @@ void LLConversationViewSession::draw()  		(*iit)->setVisible(draw_children);  	} +	// we don't draw the open folder arrow in minimized mode +	if (mHasArrow && !mCollapsedMode) +	{ +		// update the rotation angle of open folder arrow +		updateLabelRotation(); +		drawOpenFolderArrow(default_params, sFgColor); +	} +  	LLView::draw();  } @@ -246,7 +246,7 @@ BOOL LLConversationViewSession::handleMouseDown( S32 x, S32 y, MASK mask )      if(result && getRoot()->getCurSelectedItem() == this)  	{  		LLFloaterIMContainer *im_container = LLFloaterReg::getTypedInstance<LLFloaterIMContainer>("im_container"); -		im_container->clearAllFlashStates(); +		im_container->flashConversationItemWidget(session_id,false);  		im_container->selectConversationPair(session_id, false);  		im_container->collapseMessagesPane(false);  	} diff --git a/indra/newview/llfloaterimsessiontab.cpp b/indra/newview/llfloaterimsessiontab.cpp index 06a79836db..bc5b8c334d 100644 --- a/indra/newview/llfloaterimsessiontab.cpp +++ b/indra/newview/llfloaterimsessiontab.cpp @@ -88,13 +88,6 @@ LLFloaterIMSessionTab::LLFloaterIMSessionTab(const LLSD& session_id)  LLFloaterIMSessionTab::~LLFloaterIMSessionTab()  {  	delete mRefreshTimer; - -	// Select Nearby Chat session -	LLFloaterIMContainer* container = LLFloaterReg::findTypedInstance<LLFloaterIMContainer>("im_container"); -	if (container) -	{ -		container->selectConversationPair(LLUUID(NULL), true); -	}  }  //static diff --git a/indra/newview/llpaneloutfitedit.cpp b/indra/newview/llpaneloutfitedit.cpp index d690a18477..f5db98f831 100644 --- a/indra/newview/llpaneloutfitedit.cpp +++ b/indra/newview/llpaneloutfitedit.cpp @@ -169,7 +169,7 @@ public:  		return menu;  	} - +	  private:  	static void onCreate(const LLSD& param)  	{ | 
