diff options
author | Jacek Antonelli | 2008-09-28 17:21:23 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-28 17:21:46 -0500 |
commit | 31e7c77a411d94bc87f0232588b339149bb29a49 (patch) | |
tree | 49e487700e91713e620e4d33f20b7f7afb5a2fa9 /linden/indra/newview/llviewermessage.cpp | |
parent | Second Life viewer sources 1.21.2-RC (diff) | |
download | meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.zip meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.gz meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.bz2 meta-impy-31e7c77a411d94bc87f0232588b339149bb29a49.tar.xz |
Second Life viewer sources 1.21.3-RC
Diffstat (limited to 'linden/indra/newview/llviewermessage.cpp')
-rw-r--r-- | linden/indra/newview/llviewermessage.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/linden/indra/newview/llviewermessage.cpp b/linden/indra/newview/llviewermessage.cpp index f79730b..f6cefce 100644 --- a/linden/indra/newview/llviewermessage.cpp +++ b/linden/indra/newview/llviewermessage.cpp | |||
@@ -539,9 +539,9 @@ void process_places_reply(LLMessageSystem* msg, void** data) | |||
539 | 539 | ||
540 | void send_sound_trigger(const LLUUID& sound_id, F32 gain) | 540 | void send_sound_trigger(const LLUUID& sound_id, F32 gain) |
541 | { | 541 | { |
542 | if (sound_id.isNull()) | 542 | if (sound_id.isNull() || gAgent.getRegion() == NULL) |
543 | { | 543 | { |
544 | // zero guids don't get sent (no sound) | 544 | // disconnected agent or zero guids don't get sent (no sound) |
545 | return; | 545 | return; |
546 | } | 546 | } |
547 | 547 | ||
@@ -861,7 +861,9 @@ void open_offer(const std::vector<LLUUID>& items, const std::string& from_name) | |||
861 | } | 861 | } |
862 | 862 | ||
863 | if(gSavedSettings.getBOOL("ShowInInventory") && | 863 | if(gSavedSettings.getBOOL("ShowInInventory") && |
864 | asset_type != LLAssetType::AT_CALLINGCARD) | 864 | asset_type != LLAssetType::AT_CALLINGCARD && |
865 | item->getInventoryType() != LLInventoryType::IT_ATTACHMENT && | ||
866 | !from_name.empty()) | ||
865 | { | 867 | { |
866 | LLInventoryView::showAgentInventory(TRUE); | 868 | LLInventoryView::showAgentInventory(TRUE); |
867 | } | 869 | } |