diff options
author | Armin Weatherwax | 2009-10-04 22:03:58 +0200 |
---|---|---|
committer | Armin Weatherwax | 2009-10-04 22:03:58 +0200 |
commit | 06a08bbd9505f0f2334dd42695243bafdee8b71a (patch) | |
tree | eb8b5b6a0366214af06ee2adf1c557baec93d8a1 /linden/indra/newview/llviewermenu.cpp | |
parent | Imprudence 1.2.0 beta released. (diff) | |
download | meta-impy-06a08bbd9505f0f2334dd42695243bafdee8b71a.zip meta-impy-06a08bbd9505f0f2334dd42695243bafdee8b71a.tar.gz meta-impy-06a08bbd9505f0f2334dd42695243bafdee8b71a.tar.bz2 meta-impy-06a08bbd9505f0f2334dd42695243bafdee8b71a.tar.xz |
test this as a fix for logout crash #2
modified: linden/indra/newview/llviewermenu.cpp
modified: linden/indra/newview/llviewerregion.cpp
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 | } |