diff options
| author | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-21 09:25:44 -0800 |
|---|---|---|
| committer | Tofu Linden <tofu.linden@lindenlab.com> | 2010-01-21 09:25:44 -0800 |
| commit | 2c0418dfe0a3e903210516a70fd947870c340bf8 (patch) | |
| tree | 9fc4c80cda74d89038f433e4e4c7f331ed702e84 /indra/newview/llpanelplaces.cpp | |
| parent | 435dcdb3e307f70b5d0be801a98fb05cb1c87fcf (diff) | |
| parent | 43c355e39891db7047652d56fd5bf53bb69659b7 (diff) | |
PE merge.
Diffstat (limited to 'indra/newview/llpanelplaces.cpp')
| -rw-r--r-- | indra/newview/llpanelplaces.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llpanelplaces.cpp b/indra/newview/llpanelplaces.cpp index a71c8d8958..b037674c37 100644 --- a/indra/newview/llpanelplaces.cpp +++ b/indra/newview/llpanelplaces.cpp @@ -842,6 +842,19 @@ void LLPanelPlaces::togglePlaceInfoPanel(BOOL visible) mPlaceProfile->setVisible(FALSE); } + else + { + LLLandmarksPanel* landmarks_panel = + dynamic_cast<LLLandmarksPanel*>(mTabContainer->getPanelByName("Landmarks")); + if (landmarks_panel && mItem.notNull()) + { + // If a landmark info is being closed we open the landmarks tab + // and set this landmark selected. + mTabContainer->selectTabPanel(landmarks_panel); + + landmarks_panel->setItemSelected(mItem->getUUID(), TRUE); + } + } } } |
