diff options
author | David Seikel | 2011-03-20 19:37:35 +1000 |
---|---|---|
committer | David Seikel | 2011-03-20 19:37:35 +1000 |
commit | 2782fe618e4b2345542a635e03d356b861ff3dd0 (patch) | |
tree | 0a2d914e1ef66306c9ff09e71fa50fcade86015a | |
parent | Um, Windows get's it's own README file coz it's special? Just make it the sa... (diff) | |
download | meta-impy-2782fe618e4b2345542a635e03d356b861ff3dd0.zip meta-impy-2782fe618e4b2345542a635e03d356b861ff3dd0.tar.gz meta-impy-2782fe618e4b2345542a635e03d356b861ff3dd0.tar.bz2 meta-impy-2782fe618e4b2345542a635e03d356b861ff3dd0.tar.xz |
These two files got stomped all over when they where converted to unix line endings, so re-apply my changes.
-rw-r--r-- | linden/indra/newview/llfloaterregioninfo.cpp | 25 | ||||
-rw-r--r-- | linden/indra/newview/llfloatertos.cpp | 2 |
2 files changed, 3 insertions, 24 deletions
diff --git a/linden/indra/newview/llfloaterregioninfo.cpp b/linden/indra/newview/llfloaterregioninfo.cpp index 23f3cf1..d6eeefe 100644 --- a/linden/indra/newview/llfloaterregioninfo.cpp +++ b/linden/indra/newview/llfloaterregioninfo.cpp | |||
@@ -1650,16 +1650,9 @@ void LLPanelEstateInfo::onClickAddAllowedGroup(void* user_data) | |||
1650 | return; | 1650 | return; |
1651 | } | 1651 | } |
1652 | 1652 | ||
1653 | LLNotification::Params params("ChangeLindenAccess"); | 1653 | LLNotification::Params params("PfftLindenCrap"); |
1654 | params.functor(boost::bind(&LLPanelEstateInfo::addAllowedGroup, self, _1, _2)); | 1654 | params.functor(boost::bind(&LLPanelEstateInfo::addAllowedGroup, self, _1, _2)); |
1655 | if (isLindenEstate()) | 1655 | LLNotifications::instance().forceResponse(params, 0); |
1656 | { | ||
1657 | LLNotifications::instance().add(params); | ||
1658 | } | ||
1659 | else | ||
1660 | { | ||
1661 | LLNotifications::instance().forceResponse(params, 0); | ||
1662 | } | ||
1663 | } | 1656 | } |
1664 | 1657 | ||
1665 | bool LLPanelEstateInfo::addAllowedGroup(const LLSD& notification, const LLSD& response) | 1658 | bool LLPanelEstateInfo::addAllowedGroup(const LLSD& notification, const LLSD& response) |
@@ -3241,20 +3234,6 @@ bool LLDispatchEstateUpdateInfo::operator()( | |||
3241 | panel->setSunHour(sun_hour); | 3234 | panel->setSunHour(sun_hour); |
3242 | } | 3235 | } |
3243 | 3236 | ||
3244 | bool visible_from_mainland = (bool)(flags & REGION_FLAGS_EXTERNALLY_VISIBLE); | ||
3245 | bool god = gAgent.isGodlike(); | ||
3246 | bool linden_estate = (estate_id <= ESTATE_LAST_LINDEN); | ||
3247 | |||
3248 | // If visible from mainland, disable the access allowed | ||
3249 | // UI, as anyone can teleport there. | ||
3250 | // However, gods need to be able to edit the access list for | ||
3251 | // linden estates, regardless of visibility, to allow object | ||
3252 | // and L$ transfers. | ||
3253 | bool enable_agent = (!visible_from_mainland || (god && linden_estate)); | ||
3254 | bool enable_group = enable_agent; | ||
3255 | bool enable_ban = !linden_estate; | ||
3256 | panel->setAccessAllowedEnabled(enable_agent, enable_group, enable_ban); | ||
3257 | |||
3258 | return true; | 3237 | return true; |
3259 | } | 3238 | } |
3260 | 3239 | ||
diff --git a/linden/indra/newview/llfloatertos.cpp b/linden/indra/newview/llfloatertos.cpp index ebbecb1..7773126 100644 --- a/linden/indra/newview/llfloatertos.cpp +++ b/linden/indra/newview/llfloatertos.cpp | |||
@@ -42,7 +42,7 @@ | |||
42 | #include "llviewertexteditor.h" | 42 | #include "llviewertexteditor.h" |
43 | #include "llviewerwindow.h" | 43 | #include "llviewerwindow.h" |
44 | 44 | ||
45 | // linden library includes | 45 | // viewer library includes |
46 | #include "llbutton.h" | 46 | #include "llbutton.h" |
47 | #include "llhttpclient.h" | 47 | #include "llhttpclient.h" |
48 | #include "llhttpstatuscodes.h" // for HTTP_FOUND | 48 | #include "llhttpstatuscodes.h" // for HTTP_FOUND |