aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llinventorybridge.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/newview/llinventorybridge.cpp')
-rw-r--r--linden/indra/newview/llinventorybridge.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/linden/indra/newview/llinventorybridge.cpp b/linden/indra/newview/llinventorybridge.cpp
index 27be9f6..fd7d98e 100644
--- a/linden/indra/newview/llinventorybridge.cpp
+++ b/linden/indra/newview/llinventorybridge.cpp
@@ -2593,8 +2593,8 @@ void LLCallingCardBridge::performAction(LLFolderView* folder, LLInventoryModel*
2593 if (item && (item->getCreatorUUID() != gAgent.getID()) && 2593 if (item && (item->getCreatorUUID() != gAgent.getID()) &&
2594 (!item->getCreatorUUID().isNull())) 2594 (!item->getCreatorUUID().isNull()))
2595 { 2595 {
2596 gIMView->setFloaterOpen(TRUE); 2596 gIMMgr->setFloaterOpen(TRUE);
2597 gIMView->addSession(item->getName(), IM_NOTHING_SPECIAL, item->getCreatorUUID()); 2597 gIMMgr->addSession(item->getName(), IM_NOTHING_SPECIAL, item->getCreatorUUID());
2598 } 2598 }
2599 } 2599 }
2600 else if ("lure" == action) 2600 else if ("lure" == action)
@@ -2671,7 +2671,7 @@ void LLCallingCardBridge::buildContextMenu(LLMenuGL& menu, U32 flags)
2671 BOOL good_card = (item 2671 BOOL good_card = (item
2672 && (LLUUID::null != item->getCreatorUUID()) 2672 && (LLUUID::null != item->getCreatorUUID())
2673 && (item->getCreatorUUID() != gAgent.getID())); 2673 && (item->getCreatorUUID() != gAgent.getID()));
2674 2674 BOOL user_online = (LLAvatarTracker::instance().isBuddyOnline(item->getCreatorUUID()));
2675 items.push_back("Send Instant Message"); 2675 items.push_back("Send Instant Message");
2676 items.push_back("Offer Teleport..."); 2676 items.push_back("Offer Teleport...");
2677 items.push_back("Conference Chat"); 2677 items.push_back("Conference Chat");
@@ -2679,6 +2679,9 @@ void LLCallingCardBridge::buildContextMenu(LLMenuGL& menu, U32 flags)
2679 if (!good_card) 2679 if (!good_card)
2680 { 2680 {
2681 disabled_items.push_back("Send Instant Message"); 2681 disabled_items.push_back("Send Instant Message");
2682 }
2683 if (!good_card || !user_online)
2684 {
2682 disabled_items.push_back("Offer Teleport..."); 2685 disabled_items.push_back("Offer Teleport...");
2683 disabled_items.push_back("Conference Chat"); 2686 disabled_items.push_back("Conference Chat");
2684 } 2687 }