diff options
-rw-r--r-- | linden/indra/newview/llviewermenu.cpp | 3 | ||||
-rw-r--r-- | linden/indra/newview/llviewerregion.cpp | 6 |
2 files changed, 6 insertions, 3 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 | } |
diff --git a/linden/indra/newview/llviewerregion.cpp b/linden/indra/newview/llviewerregion.cpp index 1c527e0..d7f1c80 100644 --- a/linden/indra/newview/llviewerregion.cpp +++ b/linden/indra/newview/llviewerregion.cpp | |||
@@ -906,10 +906,12 @@ bool LLViewerRegion::isAlive() | |||
906 | 906 | ||
907 | BOOL LLViewerRegion::isOwnedSelf(const LLVector3& pos) | 907 | BOOL LLViewerRegion::isOwnedSelf(const LLVector3& pos) |
908 | { | 908 | { |
909 | if (mParcelOverlay) | 909 | if (mParcelOverlay && !gDisconnected) |
910 | { | 910 | { |
911 | return mParcelOverlay->isOwnedSelf(pos); | 911 | return mParcelOverlay->isOwnedSelf(pos); |
912 | } else { | 912 | } |
913 | else | ||
914 | { | ||
913 | return FALSE; | 915 | return FALSE; |
914 | } | 916 | } |
915 | } | 917 | } |