diff options
author | Sergei Litovchuk <slitovchuk@productengine.com> | 2010-01-18 22:20:11 +0200 |
---|---|---|
committer | Sergei Litovchuk <slitovchuk@productengine.com> | 2010-01-18 22:20:11 +0200 |
commit | 0dac371e064412c5d33261ad98ba7ba56d2f0272 (patch) | |
tree | 81deb7b33dfecccacdb7a767b6afb0b020830cc3 /indra/newview/llpanellandmarks.cpp | |
parent | 16456d9679336c26b8722e014c3516096695499f (diff) |
Fixed low bug (EXT-4310) '+' btn on My Landmarks tab of Places panel duplicates behavior of Star btn in nav bar
- Added alert if trying to create landmark for same location more than once.
--HG--
branch : product-engine
Diffstat (limited to 'indra/newview/llpanellandmarks.cpp')
-rw-r--r-- | indra/newview/llpanellandmarks.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/indra/newview/llpanellandmarks.cpp b/indra/newview/llpanellandmarks.cpp index 30acf37f82..d6e407a0ed 100644 --- a/indra/newview/llpanellandmarks.cpp +++ b/indra/newview/llpanellandmarks.cpp @@ -35,6 +35,7 @@ #include "llbutton.h" #include "llfloaterreg.h" +#include "llnotificationsutil.h" #include "llsdutil.h" #include "llsdutil_math.h" #include "llregionhandle.h" @@ -632,8 +633,7 @@ void LLLandmarksPanel::onAddAction(const LLSD& userdata) const LLViewerInventoryItem* landmark = LLLandmarkActions::findLandmarkForAgentPos(); if(landmark) { - LLSideTray::getInstance()->showPanel("panel_places", - LLSD().with("type", "landmark").with("id",landmark->getUUID())); + LLNotificationsUtil::add("LandmarkAlreadyExists"); } else { |