diff options
author | Armin Weatherwax | 2011-03-21 00:15:28 +0100 |
---|---|---|
committer | Armin Weatherwax | 2011-03-21 00:15:28 +0100 |
commit | 36b31c11bc6dea2e3a6a25b6e74df703afdfca7e (patch) | |
tree | b071649e89750e964612e0285da355d90ce335d6 /linden/indra/newview/llpanelnetwork.cpp | |
parent | fix: voice always on, even if told not to be (diff) | |
download | meta-impy-36b31c11bc6dea2e3a6a25b6e74df703afdfca7e.zip meta-impy-36b31c11bc6dea2e3a6a25b6e74df703afdfca7e.tar.gz meta-impy-36b31c11bc6dea2e3a6a25b6e74df703afdfca7e.tar.bz2 meta-impy-36b31c11bc6dea2e3a6a25b6e74df703afdfca7e.tar.xz |
several embedded browser proxy fixes and one small cookie fix
* split xmlrpc and web browser proxy setting into 2 settings
(because the login service might refuse to let you in using TOR)
* fix web proxy to be used not only for the browser floater but also for login screen and parcel media.
Backported for that the setProxyConfig method from Viewer-external(last gpl+floss version)
* fix: no clear cookies button
* todo: cookies need work
note to devs of other viewers: if you find this useful feel free to apply my part to "lgpl v2.1 only" code without need to ask (thats all but setProxyConfig, which is anyway also released under lgpl by LL ).
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llpanelnetwork.cpp | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/linden/indra/newview/llpanelnetwork.cpp b/linden/indra/newview/llpanelnetwork.cpp index 2edd1a1..16b9a76 100644 --- a/linden/indra/newview/llpanelnetwork.cpp +++ b/linden/indra/newview/llpanelnetwork.cpp | |||
@@ -64,6 +64,14 @@ BOOL LLPanelNetwork::postBuild() | |||
64 | childSetValue("connection_port_enabled", gSavedSettings.getBOOL("ConnectionPortEnabled")); | 64 | childSetValue("connection_port_enabled", gSavedSettings.getBOOL("ConnectionPortEnabled")); |
65 | childSetValue("connection_port", (F32)gSavedSettings.getU32("ConnectionPort")); | 65 | childSetValue("connection_port", (F32)gSavedSettings.getU32("ConnectionPort")); |
66 | 66 | ||
67 | childSetCommitCallback("xmlrpc_proxy_enabled", onCommitXMLRPCProxyEnabled, this); | ||
68 | childSetValue("xmlrpc_proxy_enabled", gSavedSettings.getBOOL("XMLRPCProxyEnabled")); | ||
69 | childSetValue("xmlrpc_proxy_editor", gSavedSettings.getString("XMLRPCProxyAddress")); | ||
70 | childSetValue("xmlrpc_proxy_port", gSavedSettings.getS32("XMLRPCProxyPort")); | ||
71 | childSetEnabled("xmlrpc_proxy_text_label", gSavedSettings.getBOOL("XMLRPCProxyEnabled")); | ||
72 | childSetEnabled("xmlrpc_proxy_editor", gSavedSettings.getBOOL("XMLRPCProxyEnabled")); | ||
73 | childSetEnabled("xmlrpc_proxy_port", gSavedSettings.getBOOL("XMLRPCProxyEnabled")); | ||
74 | |||
67 | return TRUE; | 75 | return TRUE; |
68 | } | 76 | } |
69 | 77 | ||
@@ -79,6 +87,10 @@ void LLPanelNetwork::apply() | |||
79 | gSavedSettings.setF32("ThrottleBandwidthKBPS", childGetValue("max_bandwidth").asReal()); | 87 | gSavedSettings.setF32("ThrottleBandwidthKBPS", childGetValue("max_bandwidth").asReal()); |
80 | gSavedSettings.setBOOL("ConnectionPortEnabled", childGetValue("connection_port_enabled")); | 88 | gSavedSettings.setBOOL("ConnectionPortEnabled", childGetValue("connection_port_enabled")); |
81 | gSavedSettings.setU32("ConnectionPort", childGetValue("connection_port").asInteger()); | 89 | gSavedSettings.setU32("ConnectionPort", childGetValue("connection_port").asInteger()); |
90 | |||
91 | gSavedSettings.setBOOL("XMLRPCProxyEnabled", childGetValue("xmlrpc_proxy_enabled")); | ||
92 | gSavedSettings.setString("XMLRPCProxyAddress", childGetValue("xmlrpc_proxy_editor")); | ||
93 | gSavedSettings.setS32("XMLRPCProxyPort", childGetValue("xmlrpc_proxy_port")); | ||
82 | } | 94 | } |
83 | 95 | ||
84 | void LLPanelNetwork::cancel() | 96 | void LLPanelNetwork::cancel() |
@@ -144,3 +156,15 @@ void LLPanelNetwork::onCommitPort(LLUICtrl* ctrl, void* data) | |||
144 | self->childSetEnabled("connection_port", check->get()); | 156 | self->childSetEnabled("connection_port", check->get()); |
145 | LLNotifications::instance().add("ChangeConnectionPort"); | 157 | LLNotifications::instance().add("ChangeConnectionPort"); |
146 | } | 158 | } |
159 | |||
160 | // static | ||
161 | void LLPanelNetwork::onCommitXMLRPCProxyEnabled(LLUICtrl* ctrl, void* data) | ||
162 | { | ||
163 | LLPanelNetwork* self = (LLPanelNetwork*)data; | ||
164 | LLCheckBoxCtrl* check = (LLCheckBoxCtrl*)ctrl; | ||
165 | |||
166 | if (!self || !check) return; | ||
167 | self->childSetEnabled("xmlrpc_proxy_editor", check->get()); | ||
168 | self->childSetEnabled("xmlrpc_proxy_port", check->get()); | ||
169 | self->childSetEnabled("xmlrpc_proxy_text_label", check->get()); | ||
170 | } \ No newline at end of file | ||