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/llfloaterflickr.cpp | |
| parent | 15434d53ea1f1bca37b7b9d6d569b3cb61d09bbe (diff) | |
made floater_snapshot links open the photo tab on the corresponding floater for ACME-1168
Diffstat (limited to 'indra/newview/llfloaterflickr.cpp')
| -rw-r--r-- | indra/newview/llfloaterflickr.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llfloaterflickr.cpp b/indra/newview/llfloaterflickr.cpp index 1edc61fcf6..7140b527b9 100644 --- a/indra/newview/llfloaterflickr.cpp +++ b/indra/newview/llfloaterflickr.cpp @@ -46,6 +46,7 @@ #include "llviewerregion.h" #include "llviewercontrol.h" #include "llviewermedia.h" +#include "lltabcontainer.h" static LLRegisterPanelClassWrapper<LLFlickrPhotoPanel> t_panel_photo("llflickrphotopanel"); static LLRegisterPanelClassWrapper<LLFlickrAccountPanel> t_panel_account("llflickraccountpanel"); @@ -588,6 +589,18 @@ BOOL LLFloaterFlickr::postBuild() return LLFloater::postBuild(); } +void LLFloaterFlickr::showPhotoPanel() +{ + LLTabContainer* parent = dynamic_cast<LLTabContainer*>(mSocialPhotoPanel->getParent()); + if (!parent) + { + llwarns << "Cannot find panel container" << llendl; + return; + } + + parent->selectTabPanel(mSocialPhotoPanel); +} + // static void LLFloaterFlickr::preUpdate() { |
