summaryrefslogtreecommitdiff
path: root/indra/newview/llstartup.cpp
diff options
context:
space:
mode:
authorcallum <none@none>2010-10-07 12:08:03 -0700
committercallum <none@none>2010-10-07 12:08:03 -0700
commitdd2eff8da2b2508d5fc46492147e015d2455f957 (patch)
treebfae6ad41199479b578301a3c2ca7e749c18cdea /indra/newview/llstartup.cpp
parent01b28ddf5ddc7118bc8b2047d899aee0293a8721 (diff)
EXP-167: Quit On Login Page Activated - viewer code /default setting
Diffstat (limited to 'indra/newview/llstartup.cpp')
-rw-r--r--indra/newview/llstartup.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp
index c56cacd12b..1a42500ec4 100644
--- a/indra/newview/llstartup.cpp
+++ b/indra/newview/llstartup.cpp
@@ -706,7 +706,15 @@ bool idle_startup()
if (STATE_LOGIN_SHOW == LLStartUp::getStartupState())
{
LL_DEBUGS("AppInit") << "Initializing Window" << LL_ENDL;
-
+
+ // if auto login is on and setting to quit if the login page is activated
+ // is enabled, then go ahead and exit
+ if ( gSavedSettings.getBOOL("AutoLogin") && gSavedSettings.getBOOL("QuitOnLoginActivated") )
+ {
+ // no requirement for notification here - just exit
+ LLAppViewer::instance()->earlyExitNoNotify();
+ }
+
gViewerWindow->getWindow()->setCursor(UI_CURSOR_ARROW);
timeout_count = 0;