EXT-7700 - Script error window shows [All Scripts] for every tab

reviewed by Mani
master
Richard Nelson 2010-06-07 16:49:06 -07:00
parent d50ab8b58a
commit a1f21c968e
3 changed files with 16 additions and 0 deletions

View File

@ -810,6 +810,11 @@ void LLFloater::applyTitle()
{
mDragHandle->setTitle ( mTitle );
}
if (getHost())
{
getHost()->updateFloaterTitle(this);
}
}
std::string LLFloater::getCurrentTitle() const

View File

@ -238,6 +238,16 @@ void LLMultiFloater::addFloater(LLFloater* floaterp, BOOL select_added_floater,
moveResizeHandlesToFront();
}
void LLMultiFloater::updateFloaterTitle(LLFloater* floaterp)
{
S32 index = mTabContainer->getIndexForPanel(floaterp);
if (index != -1)
{
mTabContainer->setPanelTitle(index, floaterp->getShortTitle());
}
}
/**
BOOL selectFloater(LLFloater* floaterp)

View File

@ -80,6 +80,7 @@ public:
void onTabSelected();
virtual void updateResizeLimits();
virtual void updateFloaterTitle(LLFloater* floaterp);
protected:
struct LLFloaterData