diff options
| author | Cho <cho@lindenlab.com> | 2013-01-18 18:00:17 +0000 | 
|---|---|---|
| committer | Cho <cho@lindenlab.com> | 2013-01-18 18:00:17 +0000 | 
| commit | 2f20348fb6a5b9a461e284f76c207e7384f221ee (patch) | |
| tree | 810747e08a58bfa9732e681248a32ee5e40e527b | |
| parent | 414b699f8f926c8400e64b9ba052f34b297a391c (diff) | |
| parent | be7835eec6b6cae12656fede44fc2cda1729e20d (diff) | |
merging latest changes
| -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)  	{ | 
