diff options
Diffstat (limited to 'linden/indra/newview')
-rw-r--r-- | linden/indra/newview/CMakeLists.txt | 1 | ||||
-rw-r--r-- | linden/indra/newview/llpanellandmedia.cpp | 51 |
2 files changed, 0 insertions, 52 deletions
diff --git a/linden/indra/newview/CMakeLists.txt b/linden/indra/newview/CMakeLists.txt index b576ccd..75ba977 100644 --- a/linden/indra/newview/CMakeLists.txt +++ b/linden/indra/newview/CMakeLists.txt | |||
@@ -1174,7 +1174,6 @@ set(viewer_APPSETTINGS_FILES | |||
1174 | ${CMAKE_SOURCE_DIR}/../scripts/messages/message_template.msg | 1174 | ${CMAKE_SOURCE_DIR}/../scripts/messages/message_template.msg |
1175 | ) | 1175 | ) |
1176 | 1176 | ||
1177 | |||
1178 | source_group("App Settings" FILES ${viewer_APPSETTINGS_FILES}) | 1177 | source_group("App Settings" FILES ${viewer_APPSETTINGS_FILES}) |
1179 | 1178 | ||
1180 | set_source_files_properties(${viewer_APPSETTINGS_FILES} | 1179 | set_source_files_properties(${viewer_APPSETTINGS_FILES} |
diff --git a/linden/indra/newview/llpanellandmedia.cpp b/linden/indra/newview/llpanellandmedia.cpp index fc84bb5..db68c42 100644 --- a/linden/indra/newview/llpanellandmedia.cpp +++ b/linden/indra/newview/llpanellandmedia.cpp | |||
@@ -172,57 +172,6 @@ void LLPanelLandMedia::refresh() | |||
172 | BOOL can_change_media = LLViewerParcelMgr::isParcelModifiableByAgent(parcel, GP_LAND_CHANGE_MEDIA); | 172 | BOOL can_change_media = LLViewerParcelMgr::isParcelModifiableByAgent(parcel, GP_LAND_CHANGE_MEDIA); |
173 | 173 | ||
174 | mCheckSoundLocal->set( parcel->getSoundLocal() ); | 174 | mCheckSoundLocal->set( parcel->getSoundLocal() ); |
175 | mCheckSoundLocal->setEnabled( can_change_media ); | ||
176 | |||
177 | LLViewerRegion* region = LLViewerParcelMgr::getInstance()->getSelectionRegion(); | ||
178 | if (!region) | ||
179 | { | ||
180 | // never seen this happen, but log it | ||
181 | llwarns << "Couldn't get selected region." << llendl; | ||
182 | } | ||
183 | |||
184 | // We need to do this differently for OpenSim because it doesn't include | ||
185 | // REGION_FLAGS_ALLOW_VOICE in the "RegionInfo" message as of 0.6.9 PF -- MC | ||
186 | bool allow_voice = parcel->getParcelFlagAllowVoice(); | ||
187 | if (gHippoGridManager->getConnectedGrid()->isSecondLife()) | ||
188 | { | ||
189 | if (region && region->isVoiceEnabled()) // estate-wide voice-disable overrides all | ||
190 | { | ||
191 | mCheckEnableVoiceChatIsEstateDisabled->setVisible(false); | ||
192 | |||
193 | mCheckEnableVoiceChat->setVisible(true); | ||
194 | mCheckEnableVoiceChat->setEnabled( can_change_media ); | ||
195 | mCheckEnableVoiceChat->set(allow_voice); | ||
196 | |||
197 | mCheckEnableVoiceChatParcel->setEnabled( can_change_media && allow_voice ); | ||
198 | } | ||
199 | else // disabled at region level | ||
200 | { | ||
201 | mCheckEnableVoiceChatIsEstateDisabled->setVisible(true); // always disabled | ||
202 | mCheckEnableVoiceChat->setVisible(false); | ||
203 | mCheckEnableVoiceChat->setEnabled(false); | ||
204 | mCheckEnableVoiceChat->set(false); | ||
205 | |||
206 | mCheckEnableVoiceChatParcel->setEnabled(false); | ||
207 | } | ||
208 | } | ||
209 | else | ||
210 | { | ||
211 | mCheckEnableVoiceChatIsEstateDisabled->setVisible(true); | ||
212 | |||
213 | mCheckEnableVoiceChat->setVisible(true); | ||
214 | mCheckEnableVoiceChat->setEnabled( can_change_media ); | ||
215 | mCheckEnableVoiceChat->set(allow_voice); | ||
216 | |||
217 | mCheckEnableVoiceChatParcel->setEnabled( can_change_media && allow_voice ); | ||
218 | } | ||
219 | |||
220 | mCheckEnableVoiceChatParcel->set(!parcel->getParcelFlagUseEstateVoiceChannel()); | ||
221 | |||
222 | mMusicURLEdit->setText(parcel->getMusicURL()); | ||
223 | mMusicURLEdit->setEnabled( can_change_media ); | ||
224 | |||
225 | |||
226 | 175 | ||
227 | childSetText("current_url", parcel->getMediaCurrentURL()); | 176 | childSetText("current_url", parcel->getMediaCurrentURL()); |
228 | 177 | ||