diff options
author | Sergei Litovchuk <slitovchuk@productengine.com> | 2010-01-21 16:58:05 +0200 |
---|---|---|
committer | Sergei Litovchuk <slitovchuk@productengine.com> | 2010-01-21 16:58:05 +0200 |
commit | e2443ace9568406993f207721cf6dd9b2223a7a8 (patch) | |
tree | adfaba348101ce1f5344d7f4f5e26134fc37f41f /indra/newview/llpanelplaces.cpp | |
parent | 26384d7489b94de28169952fd3f0ef1677e94c59 (diff) |
Fixed low bug (EXT-4221) Select and display just created landmark in the
Landmarks panel after closing Create Landmark panel
- Added selecting landmark in landmarks panel after it was added or edited.
- Added expanding accordion tab containing the selected landmark.
--HG--
branch : product-engine
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); + } + } } } |