summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Mutavchi <emutavchi@productengine.com>2009-11-27 17:59:59 +0200
committerEugene Mutavchi <emutavchi@productengine.com>2009-11-27 17:59:59 +0200
commit7524fde03266b2f58e5e0f9659faf7175364dad8 (patch)
treeffdfa6e7810dbf915fec246040ab09b9d1bdf0c9
parentb7001c640e8aa153037bbeecf53933f9ac9ee04c (diff)
Fixed low bug EXT-2794(MyLandmarks: "Create Pick" is enabled when multiple landmarks are selected)
--HG-- branch : product-engine
-rw-r--r--indra/newview/llpanellandmarks.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/newview/llpanellandmarks.cpp b/indra/newview/llpanellandmarks.cpp
index e24fa14e1e..a72bc74e75 100644
--- a/indra/newview/llpanellandmarks.cpp
+++ b/indra/newview/llpanellandmarks.cpp
@@ -736,7 +736,12 @@ bool LLLandmarksPanel::isActionEnabled(const LLSD& userdata) const
}
else if("create_pick" == command_name)
{
- return !LLAgentPicksInfo::getInstance()->isPickLimitReached();
+ std::set<LLUUID> selection;
+ if ( mCurrentSelectedList && mCurrentSelectedList->getRootFolder()->getSelectionList(selection) )
+ {
+ return ( 1 == selection.size() && !LLAgentPicksInfo::getInstance()->isPickLimitReached() );
+ }
+ return false;
}
else
{