Commit ea548fcd authored by Cinder's avatar Cinder
Browse files

Follow suit with task properties panel

parent 672da8f7
......@@ -192,6 +192,14 @@ BOOL LLSidepanelTaskInfo::postBuild()
mDetailsBtn = getChild<LLButton>("details_btn");
mDetailsBtn->setClickedCallback(boost::bind(&LLSidepanelTaskInfo::onDetailsButtonClicked, this));
if (LLFloater* floater = dynamic_cast<LLFloater*>(getParent()))
getChild<LLUICtrl>("back_btn")->setCommitCallback(boost::bind(&LLSidepanelTaskInfo::closeParentFloater, this));
//else if (dynamic_cast<LLSideTrayPanelContainer*>(getParent()))
// getChild<LLUICtrl>("back_btn")->setCommitCallback(boost::bind(&LLSidepanelTaskInfo::onBackBtnClick, this));
else
getChild<LLUICtrl>("back_btn")->setEnabled(FALSE);
return TRUE;
}
......@@ -1332,3 +1340,9 @@ const LLUUID& LLSidepanelTaskInfo::getSelectedUUID()
}
return LLUUID::null;
}
void LLSidepanelTaskInfo::closeParentFloater()
{
LLFloater* floater = dynamic_cast<LLFloater*>(getParent());
if (floater) floater->closeFloater();
}
......@@ -96,6 +96,8 @@ protected:
void disableAll();
private:
void closeParentFloater();
LLUUID mCreatorID;
LLUUID mOwnerID;
LLUUID mLastOwnerID;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment