summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorAimee Linden <aimee@lindenlab.com>2010-05-12 02:26:43 +0100
committerAimee Linden <aimee@lindenlab.com>2010-05-12 02:26:43 +0100
commit8aac4348021434ec33e9d8d301310fd7b65f6827 (patch)
tree81b08be6d9e89f931af1de953172ed2a96c27e2c /indra
parent270da3e14161d7bf0d53b5f8ebfb9aaf5ad87893 (diff)
EXT-7138 WIP Added temporary debug setting "VoiceFontsAvailable", to test UI when no voice fonts are available.
Diffstat (limited to 'indra')
-rw-r--r--indra/newview/app_settings/settings.xml11
-rw-r--r--indra/newview/llvoiceclient.cpp10
2 files changed, 20 insertions, 1 deletions
diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml
index e703bd770f..eb07f099b9 100644
--- a/indra/newview/app_settings/settings.xml
+++ b/indra/newview/app_settings/settings.xml
@@ -10484,6 +10484,17 @@
<key>Value</key>
<integer>0</integer>
</map>
+ <key>VoiceFontsAvailable</key>
+ <map>
+ <key>Comment</key>
+ <string>Temporary debug setting to test UI with no fonts available</string>
+ <key>Persist</key>
+ <integer>0</integer>
+ <key>Type</key>
+ <string>Boolean</string>
+ <key>Value</key>
+ <integer>1</integer>
+ </map>
<key>VoiceFontUI</key>
<map>
<key>Comment</key>
diff --git a/indra/newview/llvoiceclient.cpp b/indra/newview/llvoiceclient.cpp
index d8bf781ce0..6bc1f42399 100644
--- a/indra/newview/llvoiceclient.cpp
+++ b/indra/newview/llvoiceclient.cpp
@@ -2318,7 +2318,15 @@ void LLVoiceClient::stateMachine()
// request the set of available voice fonts
setState(stateVoiceFontsWait);
- accountGetSessionFontsSendMessage();
+ // *FIX: Remove this temporary setting, used to test UI without fonts
+ if (gSavedSettings.getBOOL("VoiceFontsAvailable"))
+ {
+ accountGetSessionFontsSendMessage();
+ }
+ else
+ {
+ setState(stateVoiceFontsReceived);
+ }
accountGetTemplateFontsSendMessage(); // *TODO: Maybe better to do this when opening preview rather than on login
// request the current set of block rules (we'll need them when updating the friends list)