diff options
Diffstat (limited to 'linden/indra/newview/llviewermenu.cpp')
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/linden/indra/newview/llviewermenu.cpp b/linden/indra/newview/llviewermenu.cpp index d11bc02..a7768ba 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -6334,6 +6334,8 @@ class LLAttachmentEnableDrop : public view_listener_t | |||
6334 | { | 6334 | { |
6335 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 6335 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
6336 | { | 6336 | { |
6337 | if (gDisconnected) | ||
6338 | return true; | ||
6337 | LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); | 6339 | LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); |
6338 | BOOL can_build = gAgent.isGodlike() || (parcel && parcel->getAllowModify()); | 6340 | BOOL can_build = gAgent.isGodlike() || (parcel && parcel->getAllowModify()); |
6339 | 6341 | ||
@@ -6384,7 +6386,6 @@ class LLAttachmentEnableDrop : public view_listener_t | |||
6384 | // [RLVa:KB] - Checked: 2009-07-05 (RLVa-1.0.0b) | 6386 | // [RLVa:KB] - Checked: 2009-07-05 (RLVa-1.0.0b) |
6385 | bool new_value = enable_detach(NULL) && can_build && item && (!gRlvHandler.hasBehaviour(RLV_BHVR_REZ)); | 6387 | bool new_value = enable_detach(NULL) && can_build && item && (!gRlvHandler.hasBehaviour(RLV_BHVR_REZ)); |
6386 | // [/RLVa:KB] | 6388 | // [/RLVa:KB] |
6387 | |||
6388 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); | 6389 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); |
6389 | return true; | 6390 | return true; |
6390 | } | 6391 | } |