aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
authorMcCabe Maxsted2011-10-17 21:12:22 -0700
committerMcCabe Maxsted2011-10-17 21:12:22 -0700
commitc7b0dc6733e937f8457bf50041e4ff682abb6eb4 (patch)
treed5767ece4ce3b874cafe6ec48456b2f725c1d3f3 /linden/indra/newview/llstartup.cpp
parentCheck to make sure the version of cElementTree is really compatible with the ... (diff)
downloadmeta-impy-c7b0dc6733e937f8457bf50041e4ff682abb6eb4.zip
meta-impy-c7b0dc6733e937f8457bf50041e4ff682abb6eb4.tar.gz
meta-impy-c7b0dc6733e937f8457bf50041e4ff682abb6eb4.tar.bz2
meta-impy-c7b0dc6733e937f8457bf50041e4ff682abb6eb4.tar.xz
Fixed vivox license appearing when enabling voice on opensim
Diffstat (limited to 'linden/indra/newview/llstartup.cpp')
-rw-r--r--linden/indra/newview/llstartup.cpp23
1 files changed, 14 insertions, 9 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp
index 08e12ce..922de18 100644
--- a/linden/indra/newview/llstartup.cpp
+++ b/linden/indra/newview/llstartup.cpp
@@ -1161,19 +1161,24 @@ bool idle_startup()
1161 // color init must be after saved settings loaded 1161 // color init must be after saved settings loaded
1162 init_colors(); 1162 init_colors();
1163 1163
1164 if (!gSavedSettings.getBOOL("EnableVoiceChat") || 1164 // skipping over STATE_LOGIN_VOICE_LICENSE since we don't need it
1165 (gSavedSettings.getBOOL("EnableVoiceChat") && gSavedSettings.getBOOL("VivoxLicenseAccepted")) || 1165 // skipping over STATE_UPDATE_CHECK because that just waits for input
1166 !gHippoGridManager->getConnectedGrid()->isSecondLife()) 1166 // We don't do this on non-SL grids either
1167 if (LLVoiceClient::needsVivoxLicense())
1167 { 1168 {
1168 // skipping over STATE_LOGIN_VOICE_LICENSE since we don't need it 1169 if (gSavedSettings.getBOOL("EnableVoiceChat"))
1169 // skipping over STATE_UPDATE_CHECK because that just waits for input 1170 {
1170 // We don't do this on non-SL grids either 1171 LLStartUp::setStartupState(STATE_LOGIN_VOICE_LICENSE);
1171 LLStartUp::setStartupState( STATE_LOGIN_AUTH_INIT ); 1172 LLFirstUse::voiceLicenseAgreement();
1173 }
1174 else
1175 {
1176 LLStartUp::setStartupState(STATE_LOGIN_AUTH_INIT);
1177 }
1172 } 1178 }
1173 else 1179 else
1174 { 1180 {
1175 LLStartUp::setStartupState(STATE_LOGIN_VOICE_LICENSE); 1181 LLStartUp::setStartupState(STATE_LOGIN_AUTH_INIT);
1176 LLFirstUse::voiceLicenseAgreement();
1177 } 1182 }
1178 1183
1179 return FALSE; 1184 return FALSE;