diff options
| -rw-r--r-- | indra/newview/llpanellandmarks.cpp | 14 | 
1 files changed, 8 insertions, 6 deletions
| diff --git a/indra/newview/llpanellandmarks.cpp b/indra/newview/llpanellandmarks.cpp index 704bc309ee..5f717b51cc 100644 --- a/indra/newview/llpanellandmarks.cpp +++ b/indra/newview/llpanellandmarks.cpp @@ -552,14 +552,16 @@ void LLLandmarksPanel::onAddAction(const LLSD& userdata) const  	std::string command_name = userdata.asString();  	if("add_landmark" == command_name)  	{ -		if(LLLandmarkActions::landmarkAlreadyExists()) +		LLViewerInventoryItem* landmark = LLLandmarkActions::findLandmarkForAgentPos(); +		if(landmark) +		{ +			LLSideTray::getInstance()->showPanel("panel_places",  +								LLSD().insert("type", "landmark").insert("id",landmark->getUUID())); +		} +		else  		{ -			std::string location; -			LLAgentUI::buildLocationString(location, LLAgentUI::LOCATION_FORMAT_FULL); -			llwarns<<" Landmark already exists at location:  "<< location<<llendl; -			return; +			LLSideTray::getInstance()->showPanel("panel_places", LLSD().insert("type", "create_landmark"));  		} -		LLSideTray::getInstance()->showPanel("panel_places", LLSD().insert("type", "create_landmark"));  	}   	else if ("category" == command_name)  	{ | 
