aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/newview/llprefsim.cpp32
-rw-r--r--linden/indra/newview/llstartup.h3
2 files changed, 20 insertions, 15 deletions
diff --git a/linden/indra/newview/llprefsim.cpp b/linden/indra/newview/llprefsim.cpp
index 2c8ef4d..e915bd2 100644
--- a/linden/indra/newview/llprefsim.cpp
+++ b/linden/indra/newview/llprefsim.cpp
@@ -45,6 +45,7 @@
45#include "llviewercontrol.h" 45#include "llviewercontrol.h"
46#include "llviewernetwork.h" 46#include "llviewernetwork.h"
47#include "lluictrlfactory.h" 47#include "lluictrlfactory.h"
48#include "llstartup.h"
48 49
49#include "lldirpicker.h" 50#include "lldirpicker.h"
50 51
@@ -106,22 +107,23 @@ BOOL LLPrefsIMImpl::postBuild()
106 childSetLabelArg("send_im_to_email", "[EMAIL]", getString("log_in_to_change")); 107 childSetLabelArg("send_im_to_email", "[EMAIL]", getString("log_in_to_change"));
107 108
108 // Don't enable this until we get personal data 109 // Don't enable this until we get personal data
109 childDisable("include_im_in_chat_console"); 110 // Unless we're already logged in. Some non-SL grids won't send us the data we need -- MC
110 childDisable("include_im_in_chat_history"); 111 childSetEnabled("include_im_in_chat_console", LLStartUp::isLoggedIn());
111 childDisable("show_timestamps_check"); 112 childSetEnabled("include_im_in_chat_history", LLStartUp::isLoggedIn());
112 childDisable("friends_online_notify_checkbox"); 113 childSetEnabled("show_timestamps_check", LLStartUp::isLoggedIn());
114 childSetEnabled("friends_online_notify_checkbox", LLStartUp::isLoggedIn());
113 115
114 childDisable("online_visibility"); 116 childSetEnabled("online_visibility", LLStartUp::isLoggedIn());
115 childDisable("send_im_to_email"); 117 childSetEnabled("send_im_to_email", LLStartUp::isLoggedIn());
116 childDisable("log_instant_messages"); 118 childSetEnabled("log_instant_messages", LLStartUp::isLoggedIn());
117 childDisable("log_chat"); 119 childSetEnabled("log_chat", LLStartUp::isLoggedIn());
118 childDisable("log_show_history"); 120 childSetEnabled("log_show_history", LLStartUp::isLoggedIn());
119 childDisable("log_path_button"); 121 childSetEnabled("log_path_button", LLStartUp::isLoggedIn());
120 childDisable("busy_response"); 122 childSetEnabled("busy_response", LLStartUp::isLoggedIn());
121 childDisable("log_instant_messages_timestamp"); 123 childSetEnabled("log_instant_messages_timestamp", LLStartUp::isLoggedIn());
122 childDisable("log_chat_timestamp"); 124 childSetEnabled("log_chat_timestamp", LLStartUp::isLoggedIn());
123 childDisable("log_chat_IM"); 125 childSetEnabled("log_chat_IM", LLStartUp::isLoggedIn());
124 childDisable("log_date_timestamp"); 126 childSetEnabled("log_date_timestamp", LLStartUp::isLoggedIn());
125 127
126 childSetText("busy_response", getString("log_in_to_change")); 128 childSetText("busy_response", getString("log_in_to_change"));
127 129
diff --git a/linden/indra/newview/llstartup.h b/linden/indra/newview/llstartup.h
index 9a3c91c..08862e6 100644
--- a/linden/indra/newview/llstartup.h
+++ b/linden/indra/newview/llstartup.h
@@ -124,6 +124,9 @@ public:
124 static bool shouldAutoLogin() { return mShouldAutoLogin; }; 124 static bool shouldAutoLogin() { return mShouldAutoLogin; };
125 static void setShouldAutoLogin(bool value) { mShouldAutoLogin = value; }; 125 static void setShouldAutoLogin(bool value) { mShouldAutoLogin = value; };
126 126
127 // Returns true if startup has been successfully completed
128 static bool isLoggedIn() { return gStartupState == STATE_STARTED; }
129
127private: 130private:
128 static bool mStartedOnce; 131 static bool mStartedOnce;
129 static bool mShouldAutoLogin; 132 static bool mShouldAutoLogin;