diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llfloaterhtml.cpp | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/linden/indra/newview/llfloaterhtml.cpp b/linden/indra/newview/llfloaterhtml.cpp index ebcf29f..86caaf5 100644 --- a/linden/indra/newview/llfloaterhtml.cpp +++ b/linden/indra/newview/llfloaterhtml.cpp | |||
@@ -84,10 +84,9 @@ LLFloaterHtml::LLFloaterHtml() | |||
84 | // open links in internal browser | 84 | // open links in internal browser |
85 | mWebBrowser->setOpenInExternalBrowser( false ); | 85 | mWebBrowser->setOpenInExternalBrowser( false ); |
86 | 86 | ||
87 | // *FIX: code in merge sl-search-8 | 87 | // don't automatically open secondlife links since we want to catch |
88 | // // don't automatically open secondlife links since we want to catch | 88 | // special ones that do other stuff (like open F1 Help) |
89 | // // special ones that do other stuff (like open F1 Help) | 89 | mWebBrowser->setOpenSLURLsInMap( false ); |
90 | // mWebBrowser->setOpenSLURLsInMap( false ); | ||
91 | } | 90 | } |
92 | #endif // LL_LIBXUL_ENABLED | 91 | #endif // LL_LIBXUL_ENABLED |
93 | } | 92 | } |
@@ -116,7 +115,7 @@ void LLFloaterHtml::draw() | |||
116 | bool enable_forward = mWebBrowser->canNavigateForward(); | 115 | bool enable_forward = mWebBrowser->canNavigateForward(); |
117 | childSetEnabled( "forward_btn", enable_forward ); | 116 | childSetEnabled( "forward_btn", enable_forward ); |
118 | }; | 117 | }; |
119 | #endif | 118 | #endif // LL_LIBXUL_ENABLED |
120 | 119 | ||
121 | LLFloater::draw(); | 120 | LLFloater::draw(); |
122 | } | 121 | } |
@@ -180,7 +179,7 @@ void LLFloaterHtml::onClickBack( void* data ) | |||
180 | self->mWebBrowser->navigateBack(); | 179 | self->mWebBrowser->navigateBack(); |
181 | }; | 180 | }; |
182 | }; | 181 | }; |
183 | #endif | 182 | #endif // LL_LIBXUL_ENABLED |
184 | } | 183 | } |
185 | 184 | ||
186 | //////////////////////////////////////////////////////////////////////////////// | 185 | //////////////////////////////////////////////////////////////////////////////// |
@@ -204,7 +203,7 @@ void LLFloaterHtml::onClickHome( void* data ) | |||
204 | self->mWebBrowser->navigateTo( "http://google.com" ); | 203 | self->mWebBrowser->navigateTo( "http://google.com" ); |
205 | } | 204 | } |
206 | }; | 205 | }; |
207 | #endif | 206 | #endif // LL_LIBXUL_ENABLED |
208 | }; | 207 | }; |
209 | } | 208 | } |
210 | 209 | ||
@@ -220,7 +219,7 @@ void LLFloaterHtml::onClickForward( void* data ) | |||
220 | { | 219 | { |
221 | self->mWebBrowser->navigateForward(); | 220 | self->mWebBrowser->navigateForward(); |
222 | }; | 221 | }; |
223 | #endif | 222 | #endif // LL_LIBXUL_ENABLED |
224 | }; | 223 | }; |
225 | } | 224 | } |
226 | 225 | ||
@@ -228,17 +227,17 @@ void LLFloaterHtml::onClickForward( void* data ) | |||
228 | // static | 227 | // static |
229 | void LLFloaterHtml::onCommitUrlEdit(LLUICtrl* ctrl, void* user_data) | 228 | void LLFloaterHtml::onCommitUrlEdit(LLUICtrl* ctrl, void* user_data) |
230 | { | 229 | { |
230 | #if LL_LIBXUL_ENABLED | ||
231 | LLFloaterHtml* self = (LLFloaterHtml*)user_data; | 231 | LLFloaterHtml* self = (LLFloaterHtml*)user_data; |
232 | 232 | ||
233 | LLLineEditor* editor = (LLLineEditor*)ctrl; | 233 | LLLineEditor* editor = (LLLineEditor*)ctrl; |
234 | std::string url = editor->getText(); | 234 | std::string url = editor->getText(); |
235 | 235 | ||
236 | #if LL_LIBXUL_ENABLED | ||
237 | if ( self->mWebBrowser ) | 236 | if ( self->mWebBrowser ) |
238 | { | 237 | { |
239 | self->mWebBrowser->navigateTo( url ); | 238 | self->mWebBrowser->navigateTo( url ); |
240 | }; | 239 | }; |
241 | #endif | 240 | #endif // LL_LIBXUL_ENABLED |
242 | } | 241 | } |
243 | 242 | ||
244 | //////////////////////////////////////////////////////////////////////////////// | 243 | //////////////////////////////////////////////////////////////////////////////// |
@@ -256,7 +255,7 @@ void LLFloaterHtml::onClickGo( void* data ) | |||
256 | { | 255 | { |
257 | self->mWebBrowser->navigateTo( url ); | 256 | self->mWebBrowser->navigateTo( url ); |
258 | }; | 257 | }; |
259 | #endif | 258 | #endif // LL_LIBXUL_ENABLED |
260 | }; | 259 | }; |
261 | }; | 260 | }; |
262 | } | 261 | } |