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() ...@@ -192,6 +192,14 @@ BOOL LLSidepanelTaskInfo::postBuild()
mDetailsBtn = getChild<LLButton>("details_btn"); mDetailsBtn = getChild<LLButton>("details_btn");
mDetailsBtn->setClickedCallback(boost::bind(&LLSidepanelTaskInfo::onDetailsButtonClicked, this)); 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; return TRUE;
} }
...@@ -1332,3 +1340,9 @@ const LLUUID& LLSidepanelTaskInfo::getSelectedUUID() ...@@ -1332,3 +1340,9 @@ const LLUUID& LLSidepanelTaskInfo::getSelectedUUID()
} }
return LLUUID::null; return LLUUID::null;
} }
void LLSidepanelTaskInfo::closeParentFloater()
{
LLFloater* floater = dynamic_cast<LLFloater*>(getParent());
if (floater) floater->closeFloater();
}
...@@ -96,6 +96,8 @@ protected: ...@@ -96,6 +96,8 @@ protected:
void disableAll(); void disableAll();
private: private:
void closeParentFloater();
LLUUID mCreatorID; LLUUID mCreatorID;
LLUUID mOwnerID; LLUUID mOwnerID;
LLUUID mLastOwnerID; 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