diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 42 |
1 files changed, 38 insertions, 4 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index d9ab5e7..73aa9ba 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -813,8 +813,23 @@ bool idle_startup() | |||
813 | // Show the login dialog | 813 | // Show the login dialog |
814 | login_show(); | 814 | login_show(); |
815 | // connect dialog is already shown, so fill in the names | 815 | // connect dialog is already shown, so fill in the names |
816 | LLPanelLogin::setFields( firstname, lastname, password); | 816 | // icky how usernames get bolted on here as a kind of hack -- MC |
817 | 817 | if (gHippoGridManager && gHippoGridManager->getCurrentGrid()->isUsernameCompat()) | |
818 | { | ||
819 | if (lastname == "resident" || lastname == "Resident") | ||
820 | { | ||
821 | LLPanelLogin::setFields(firstname, password); | ||
822 | } | ||
823 | else | ||
824 | { | ||
825 | LLPanelLogin::setFields(firstname+"."+lastname, password); | ||
826 | } | ||
827 | } | ||
828 | else | ||
829 | { | ||
830 | LLPanelLogin::setFields(firstname, lastname, password); | ||
831 | } | ||
832 | |||
818 | LLPanelLogin::giveFocus(); | 833 | LLPanelLogin::giveFocus(); |
819 | 834 | ||
820 | gSavedSettings.setBOOL("FirstRunThisInstall", FALSE); | 835 | gSavedSettings.setBOOL("FirstRunThisInstall", FALSE); |
@@ -1243,6 +1258,20 @@ bool idle_startup() | |||
1243 | hashed_mac.finalize(); | 1258 | hashed_mac.finalize(); |
1244 | hashed_mac.hex_digest(hashed_mac_string); | 1259 | hashed_mac.hex_digest(hashed_mac_string); |
1245 | 1260 | ||
1261 | // Don't report crashes if the grid we crashed in | ||
1262 | // is different from the grid we log in | ||
1263 | eLastExecEvent last_exec_event = LAST_EXEC_NORMAL; | ||
1264 | { | ||
1265 | std::string current_grid = gHippoGridManager->getCurrentGrid()->getGridNick(); | ||
1266 | std::string last_grid = gSavedSettings.getString("LastConnectedGrid"); | ||
1267 | LL_DEBUGS("AppInit") << "current grid: " << current_grid | ||
1268 | << " Last Connected Grid: " << last_grid << LL_ENDL; | ||
1269 | if( last_grid == current_grid ) | ||
1270 | { | ||
1271 | last_exec_event = gLastExecEvent; | ||
1272 | } | ||
1273 | } | ||
1274 | |||
1246 | // TODO if statement here to use web_login_key | 1275 | // TODO if statement here to use web_login_key |
1247 | if(web_login_key.isNull()){ | 1276 | if(web_login_key.isNull()){ |
1248 | sAuthUriNum = llclamp(sAuthUriNum, 0, (S32)sAuthUris.size()-1); | 1277 | sAuthUriNum = llclamp(sAuthUriNum, 0, (S32)sAuthUris.size()-1); |
@@ -1257,7 +1286,7 @@ bool idle_startup() | |||
1257 | gSkipOptionalUpdate, | 1286 | gSkipOptionalUpdate, |
1258 | gAcceptTOS, | 1287 | gAcceptTOS, |
1259 | gAcceptCriticalMessage, | 1288 | gAcceptCriticalMessage, |
1260 | gLastExecEvent, | 1289 | last_exec_event, |
1261 | requested_options, | 1290 | requested_options, |
1262 | hashed_mac_string, | 1291 | hashed_mac_string, |
1263 | LLAppViewer::instance()->getSerialNumber()); | 1292 | LLAppViewer::instance()->getSerialNumber()); |
@@ -1272,7 +1301,7 @@ bool idle_startup() | |||
1272 | gSkipOptionalUpdate, | 1301 | gSkipOptionalUpdate, |
1273 | gAcceptTOS, | 1302 | gAcceptTOS, |
1274 | gAcceptCriticalMessage, | 1303 | gAcceptCriticalMessage, |
1275 | gLastExecEvent, | 1304 | last_exec_event, |
1276 | requested_options, | 1305 | requested_options, |
1277 | hashed_mac_string, | 1306 | hashed_mac_string, |
1278 | LLAppViewer::instance()->getSerialNumber()); | 1307 | LLAppViewer::instance()->getSerialNumber()); |
@@ -1510,6 +1539,11 @@ bool idle_startup() | |||
1510 | 1539 | ||
1511 | if(successful_login) | 1540 | if(successful_login) |
1512 | { | 1541 | { |
1542 | { | ||
1543 | std::string current_grid = gHippoGridManager->getConnectedGrid()->getGridNick(); | ||
1544 | gSavedSettings.setString("LastConnectedGrid", current_grid); | ||
1545 | } | ||
1546 | |||
1513 | std::string text; | 1547 | std::string text; |
1514 | text = LLUserAuth::getInstance()->getResponse("udp_blacklist"); | 1548 | text = LLUserAuth::getInstance()->getResponse("udp_blacklist"); |
1515 | if(!text.empty()) | 1549 | if(!text.empty()) |