diff options
author | Cho <cho@lindenlab.com> | 2013-11-11 23:13:01 +0000 |
---|---|---|
committer | Cho <cho@lindenlab.com> | 2013-11-11 23:13:01 +0000 |
commit | dbab46ae786166ac5d6c929e2c444d8f490edd58 (patch) | |
tree | 6b25276e8caa30639d33935c3679caea9974067a /indra/newview/llfloatertwitter.cpp | |
parent | 15434d53ea1f1bca37b7b9d6d569b3cb61d09bbe (diff) |
made floater_snapshot links open the photo tab on the corresponding floater for ACME-1168
Diffstat (limited to 'indra/newview/llfloatertwitter.cpp')
-rw-r--r-- | indra/newview/llfloatertwitter.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llfloatertwitter.cpp b/indra/newview/llfloatertwitter.cpp index 1324bd5fd8..0da0d64426 100644 --- a/indra/newview/llfloatertwitter.cpp +++ b/indra/newview/llfloatertwitter.cpp @@ -46,6 +46,7 @@ #include "llviewerregion.h" #include "llviewercontrol.h" #include "llviewermedia.h" +#include "lltabcontainer.h" static LLRegisterPanelClassWrapper<LLTwitterPhotoPanel> t_panel_photo("lltwitterphotopanel"); static LLRegisterPanelClassWrapper<LLTwitterAccountPanel> t_panel_account("lltwitteraccountpanel"); @@ -565,6 +566,18 @@ BOOL LLFloaterTwitter::postBuild() return LLFloater::postBuild(); } +void LLFloaterTwitter::showPhotoPanel() +{ + LLTabContainer* parent = dynamic_cast<LLTabContainer*>(mSocialPhotoPanel->getParent()); + if (!parent) + { + llwarns << "Cannot find panel container" << llendl; + return; + } + + parent->selectTabPanel(mSocialPhotoPanel); +} + // static void LLFloaterTwitter::preUpdate() { |