diff options
author | Jacek Antonelli | 2009-04-30 13:04:20 -0500 |
---|---|---|
committer | Jacek Antonelli | 2009-04-30 13:07:16 -0500 |
commit | ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e (patch) | |
tree | 8348301d0ac44a524f1819b777686bf086907d76 /linden/indra/newview/llfloatergroupinfo.cpp | |
parent | Second Life viewer sources 1.22.11 (diff) | |
download | meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.zip meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.gz meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.bz2 meta-impy-ca8149ca6d157eb4b5fc8ba0e5ba3a6e56f72e7e.tar.xz |
Second Life viewer sources 1.23.0-RC
Diffstat (limited to 'linden/indra/newview/llfloatergroupinfo.cpp')
-rw-r--r-- | linden/indra/newview/llfloatergroupinfo.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/linden/indra/newview/llfloatergroupinfo.cpp b/linden/indra/newview/llfloatergroupinfo.cpp index 0f54f02..6fbd5e1 100644 --- a/linden/indra/newview/llfloatergroupinfo.cpp +++ b/linden/indra/newview/llfloatergroupinfo.cpp | |||
@@ -19,7 +19,8 @@ | |||
19 | * There are special exceptions to the terms and conditions of the GPL as | 19 | * There are special exceptions to the terms and conditions of the GPL as |
20 | * it is applied to this Source Code. View the full text of the exception | 20 | * it is applied to this Source Code. View the full text of the exception |
21 | * in the file doc/FLOSS-exception.txt in this software distribution, or | 21 | * in the file doc/FLOSS-exception.txt in this software distribution, or |
22 | * online at http://secondlifegrid.net/programs/open_source/licensing/flossexception | 22 | * online at |
23 | * http://secondlifegrid.net/programs/open_source/licensing/flossexception | ||
23 | * | 24 | * |
24 | * By copying, modifying or distributing this software, you acknowledge | 25 | * By copying, modifying or distributing this software, you acknowledge |
25 | * that you have read and understood your obligations described above, | 26 | * that you have read and understood your obligations described above, |
@@ -41,6 +42,7 @@ | |||
41 | #include "llpanelgroup.h" | 42 | #include "llpanelgroup.h" |
42 | #include "llviewermessage.h" // for inventory_offer_callback | 43 | #include "llviewermessage.h" // for inventory_offer_callback |
43 | //#include "llviewerwindow.h" | 44 | //#include "llviewerwindow.h" |
45 | #include "llnotifications.h" | ||
44 | 46 | ||
45 | #include "llcachename.h" | 47 | #include "llcachename.h" |
46 | 48 | ||
@@ -55,9 +57,10 @@ std::map<LLUUID, LLFloaterGroupInfo*> LLFloaterGroupInfo::sInstances; | |||
55 | class LLGroupHandler : public LLCommandHandler | 57 | class LLGroupHandler : public LLCommandHandler |
56 | { | 58 | { |
57 | public: | 59 | public: |
58 | // don't allow from external browsers | 60 | // requires trusted browser to trigger |
59 | LLGroupHandler() : LLCommandHandler("group", false) { } | 61 | LLGroupHandler() : LLCommandHandler("group", true) { } |
60 | bool handle(const LLSD& tokens, const LLSD& queryMap) | 62 | bool handle(const LLSD& tokens, const LLSD& query_map, |
63 | LLWebBrowserCtrl* web) | ||
61 | { | 64 | { |
62 | if (tokens.size() < 1) | 65 | if (tokens.size() < 1) |
63 | { | 66 | { |
@@ -244,7 +247,7 @@ void LLFloaterGroupInfo::showNotice(const std::string& subject, | |||
244 | // We need to clean up that inventory offer. | 247 | // We need to clean up that inventory offer. |
245 | if (inventory_offer) | 248 | if (inventory_offer) |
246 | { | 249 | { |
247 | inventory_offer_callback( IOR_DECLINE , inventory_offer); | 250 | inventory_offer->forceResponse(IOR_DECLINE); |
248 | } | 251 | } |
249 | return; | 252 | return; |
250 | } | 253 | } |
@@ -256,7 +259,7 @@ void LLFloaterGroupInfo::showNotice(const std::string& subject, | |||
256 | // We need to clean up that inventory offer. | 259 | // We need to clean up that inventory offer. |
257 | if (inventory_offer) | 260 | if (inventory_offer) |
258 | { | 261 | { |
259 | inventory_offer_callback( IOR_DECLINE , inventory_offer); | 262 | inventory_offer->forceResponse(IOR_DECLINE); |
260 | } | 263 | } |
261 | return; | 264 | return; |
262 | } | 265 | } |