diff options
author | Richard Linden <none@none> | 2011-08-11 10:09:28 -0700 |
---|---|---|
committer | Richard Linden <none@none> | 2011-08-11 10:09:28 -0700 |
commit | 9a9e78740ada6a64847d1e915ae8e92258e8f10a (patch) | |
tree | 43935b338c5a87ca32f9240389470a96271fa1f5 /indra/newview/llstartup.cpp | |
parent | 8b09dfb8907c364f09ee82d00926219ae52b5ee9 (diff) | |
parent | 7cc7d143837f2b75f750c139e33fdf5afa8a8866 (diff) |
Automated merge with file:///e:\code\viewer-experience
Diffstat (limited to 'indra/newview/llstartup.cpp')
-rw-r--r-- | indra/newview/llstartup.cpp | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp index 14f1beab03..7991233ace 100644 --- a/indra/newview/llstartup.cpp +++ b/indra/newview/llstartup.cpp @@ -724,7 +724,7 @@ bool idle_startup() // this startup phase more than once. if (gLoginMenuBarView == NULL) { - initialize_edit_menu(); + initialize_edit_menu(); init_menus(); } @@ -1237,6 +1237,25 @@ bool idle_startup() //--------------------------------------------------------------------- if(STATE_SEED_GRANTED_WAIT == LLStartUp::getStartupState()) { + LLViewerRegion *regionp = LLWorld::getInstance()->getRegionFromHandle(gFirstSimHandle); + if (regionp->capabilitiesReceived()) + { + LLStartUp::setStartupState( STATE_SEED_CAP_GRANTED ); + } + else + { + U32 num_retries = regionp->getNumSeedCapRetries(); + if (num_retries > 0) + { + LLStringUtil::format_map_t args; + args["[NUMBER]"] = llformat("%d", num_retries + 1); + set_startup_status(0.4f, LLTrans::getString("LoginRetrySeedCapGrant", args), gAgent.mMOTD); + } + else + { + set_startup_status(0.4f, LLTrans::getString("LoginRequestSeedCapGrant"), gAgent.mMOTD); + } + } return FALSE; } |