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 ba24c16..0e9e3d9 100644 --- a/linden/indra/newview/llviewermenu.cpp +++ b/linden/indra/newview/llviewermenu.cpp | |||
@@ -6285,6 +6285,8 @@ class LLAttachmentEnableDrop : public view_listener_t | |||
6285 | { | 6285 | { |
6286 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) | 6286 | bool handleEvent(LLPointer<LLEvent> event, const LLSD& userdata) |
6287 | { | 6287 | { |
6288 | if (gDisconnected) | ||
6289 | return true; | ||
6288 | LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); | 6290 | LLParcel* parcel = LLViewerParcelMgr::getInstance()->getAgentParcel(); |
6289 | BOOL can_build = gAgent.isGodlike() || (parcel && parcel->getAllowModify()); | 6291 | BOOL can_build = gAgent.isGodlike() || (parcel && parcel->getAllowModify()); |
6290 | 6292 | ||
@@ -6335,7 +6337,6 @@ class LLAttachmentEnableDrop : public view_listener_t | |||
6335 | // [RLVa:KB] - Checked: 2009-07-05 (RLVa-1.0.0b) | 6337 | // [RLVa:KB] - Checked: 2009-07-05 (RLVa-1.0.0b) |
6336 | bool new_value = enable_detach(NULL) && can_build && item && (!gRlvHandler.hasBehaviour(RLV_BHVR_REZ)); | 6338 | bool new_value = enable_detach(NULL) && can_build && item && (!gRlvHandler.hasBehaviour(RLV_BHVR_REZ)); |
6337 | // [/RLVa:KB] | 6339 | // [/RLVa:KB] |
6338 | |||
6339 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); | 6340 | gMenuHolder->findControl(userdata["control"].asString())->setValue(new_value); |
6340 | return true; | 6341 | return true; |
6341 | } | 6342 | } |