diff options
Diffstat (limited to 'linden/indra/newview/llfloatertos.cpp')
-rw-r--r-- | linden/indra/newview/llfloatertos.cpp | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/linden/indra/newview/llfloatertos.cpp b/linden/indra/newview/llfloatertos.cpp index 6a392e0..52d7b1f 100644 --- a/linden/indra/newview/llfloatertos.cpp +++ b/linden/indra/newview/llfloatertos.cpp | |||
@@ -89,10 +89,10 @@ LLFloaterTOS::LLFloaterTOS(ETOSType type, const std::string & message) | |||
89 | 89 | ||
90 | // helper class that trys to download a URL from a web site and calls a method | 90 | // helper class that trys to download a URL from a web site and calls a method |
91 | // on parent class indicating if the web server is working or not | 91 | // on parent class indicating if the web server is working or not |
92 | class LLIamHere : public LLHTTPClient::Responder | 92 | class LLIamHereTOS : public LLHTTPClient::Responder |
93 | { | 93 | { |
94 | private: | 94 | private: |
95 | LLIamHere( LLFloaterTOS* parent ) : | 95 | LLIamHereTOS( LLFloaterTOS* parent ) : |
96 | mParent( parent ) | 96 | mParent( parent ) |
97 | {} | 97 | {} |
98 | 98 | ||
@@ -100,9 +100,9 @@ class LLIamHere : public LLHTTPClient::Responder | |||
100 | 100 | ||
101 | public: | 101 | public: |
102 | 102 | ||
103 | static boost::intrusive_ptr< LLIamHere > build( LLFloaterTOS* parent ) | 103 | static boost::intrusive_ptr< LLIamHereTOS > build( LLFloaterTOS* parent ) |
104 | { | 104 | { |
105 | return boost::intrusive_ptr< LLIamHere >( new LLIamHere( parent ) ); | 105 | return boost::intrusive_ptr< LLIamHereTOS >( new LLIamHereTOS( parent ) ); |
106 | }; | 106 | }; |
107 | 107 | ||
108 | virtual void setParent( LLFloaterTOS* parentIn ) | 108 | virtual void setParent( LLFloaterTOS* parentIn ) |
@@ -131,7 +131,7 @@ class LLIamHere : public LLHTTPClient::Responder | |||
131 | 131 | ||
132 | // this is global and not a class member to keep crud out of the header file | 132 | // this is global and not a class member to keep crud out of the header file |
133 | namespace { | 133 | namespace { |
134 | boost::intrusive_ptr< LLIamHere > gResponsePtr = 0; | 134 | boost::intrusive_ptr< LLIamHereTOS > gResponsePtr = 0; |
135 | }; | 135 | }; |
136 | 136 | ||
137 | BOOL LLFloaterTOS::postBuild() | 137 | BOOL LLFloaterTOS::postBuild() |
@@ -142,13 +142,15 @@ BOOL LLFloaterTOS::postBuild() | |||
142 | 142 | ||
143 | if ( mType != TOS_TOS ) | 143 | if ( mType != TOS_TOS ) |
144 | { | 144 | { |
145 | llinfos << "tos_type != TOS_TOS" << llendl; | ||
145 | // this displays the critical message | 146 | // this displays the critical message |
146 | LLTextEditor *editor = getChild<LLTextEditor>("tos_text"); | 147 | LLTextEditor *editor = getChild<LLTextEditor>("tos_text"); |
147 | editor->setHandleEditKeysDirectly( TRUE ); | 148 | editor->setHandleEditKeysDirectly( TRUE ); |
148 | editor->setEnabled( FALSE ); | 149 | editor->setEnabled( FALSE ); |
149 | editor->setWordWrap(TRUE); | 150 | editor->setWordWrap(TRUE); |
150 | editor->setFocus(TRUE); | 151 | editor->setFocus(TRUE); |
151 | editor->setValue(LLSD(mMessage)); | 152 | // editor->setValue(LLSD(mMessage)); |
153 | editor->setValue(mMessage); | ||
152 | 154 | ||
153 | return TRUE; | 155 | return TRUE; |
154 | } | 156 | } |
@@ -159,7 +161,7 @@ BOOL LLFloaterTOS::postBuild() | |||
159 | 161 | ||
160 | // hide the SL text widget if we're displaying TOS with using a browser widget. | 162 | // hide the SL text widget if we're displaying TOS with using a browser widget. |
161 | LLTextEditor *editor = getChild<LLTextEditor>("tos_text"); | 163 | LLTextEditor *editor = getChild<LLTextEditor>("tos_text"); |
162 | editor->setVisible( FALSE ); | 164 | editor->setVisible(FALSE); |
163 | 165 | ||
164 | LLWebBrowserCtrl* web_browser = getChild<LLWebBrowserCtrl>("tos_html"); | 166 | LLWebBrowserCtrl* web_browser = getChild<LLWebBrowserCtrl>("tos_html"); |
165 | if ( web_browser ) | 167 | if ( web_browser ) |
@@ -167,8 +169,8 @@ BOOL LLFloaterTOS::postBuild() | |||
167 | // start to observe it so we see navigate complete events | 169 | // start to observe it so we see navigate complete events |
168 | web_browser->addObserver( this ); | 170 | web_browser->addObserver( this ); |
169 | 171 | ||
170 | gResponsePtr = LLIamHere::build( this ); | 172 | gResponsePtr = LLIamHereTOS::build( this ); |
171 | LLHTTPClient::get( getString( "real_url" ), gResponsePtr ); | 173 | LLHTTPClient::head( getString( "real_url" ), gResponsePtr ); |
172 | } | 174 | } |
173 | 175 | ||
174 | return TRUE; | 176 | return TRUE; |