diff options
author | maxim_productengine <mnikolenko@productengine.com> | 2012-08-31 12:30:49 +0300 |
---|---|---|
committer | maxim_productengine <mnikolenko@productengine.com> | 2012-08-31 12:30:49 +0300 |
commit | a5a5b9e0b000ed2063a05da604e4d3c31d3d164d (patch) | |
tree | ad7d5edeee560967b2fe611e1b314cce379d7a83 /indra | |
parent | d48889198b9f5b39c195e237ae253339b2d89ef3 (diff) |
MAINT-1471 FIXED Disable "Share" menu item if there is no item selected in active panel
Diffstat (limited to 'indra')
-rw-r--r-- | indra/newview/llpanelmaininventory.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indra/newview/llpanelmaininventory.cpp b/indra/newview/llpanelmaininventory.cpp index 28cfb5b282..fabb8daa6e 100644 --- a/indra/newview/llpanelmaininventory.cpp +++ b/indra/newview/llpanelmaininventory.cpp @@ -1174,6 +1174,8 @@ BOOL LLPanelMainInventory::isActionEnabled(const LLSD& userdata) if (command_name == "share") { + LLFolderViewItem* current_item = getActivePanel()->getRootFolder()->getCurSelectedItem(); + if (!current_item) return FALSE; LLSidepanelInventory* parent = LLFloaterSidePanelContainer::getPanel<LLSidepanelInventory>("inventory"); return parent ? parent->canShare() : FALSE; } |