diff options
Diffstat (limited to 'linden/indra/newview/llstartup.cpp')
-rw-r--r-- | linden/indra/newview/llstartup.cpp | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/linden/indra/newview/llstartup.cpp b/linden/indra/newview/llstartup.cpp index c9cdc8f..bcac095 100644 --- a/linden/indra/newview/llstartup.cpp +++ b/linden/indra/newview/llstartup.cpp | |||
@@ -1243,6 +1243,20 @@ bool idle_startup() | |||
1243 | hashed_mac.finalize(); | 1243 | hashed_mac.finalize(); |
1244 | hashed_mac.hex_digest(hashed_mac_string); | 1244 | hashed_mac.hex_digest(hashed_mac_string); |
1245 | 1245 | ||
1246 | // Don't report crashes if the grid we crashed in | ||
1247 | // is different from the grid we log in | ||
1248 | eLastExecEvent last_exec_event = LAST_EXEC_NORMAL; | ||
1249 | { | ||
1250 | std::string current_grid = gHippoGridManager->getCurrentGrid()->getGridNick(); | ||
1251 | std::string last_grid = gSavedSettings.getString("LastConnectedGrid"); | ||
1252 | LL_DEBUGS("AppInit") << "current grid: " << current_grid | ||
1253 | << " Last Connected Grid: " << last_grid << LL_ENDL; | ||
1254 | if( last_grid == current_grid ) | ||
1255 | { | ||
1256 | last_exec_event = gLastExecEvent; | ||
1257 | } | ||
1258 | } | ||
1259 | |||
1246 | // TODO if statement here to use web_login_key | 1260 | // TODO if statement here to use web_login_key |
1247 | if(web_login_key.isNull()){ | 1261 | if(web_login_key.isNull()){ |
1248 | sAuthUriNum = llclamp(sAuthUriNum, 0, (S32)sAuthUris.size()-1); | 1262 | sAuthUriNum = llclamp(sAuthUriNum, 0, (S32)sAuthUris.size()-1); |
@@ -1257,7 +1271,7 @@ bool idle_startup() | |||
1257 | gSkipOptionalUpdate, | 1271 | gSkipOptionalUpdate, |
1258 | gAcceptTOS, | 1272 | gAcceptTOS, |
1259 | gAcceptCriticalMessage, | 1273 | gAcceptCriticalMessage, |
1260 | gLastExecEvent, | 1274 | last_exec_event, |
1261 | requested_options, | 1275 | requested_options, |
1262 | hashed_mac_string, | 1276 | hashed_mac_string, |
1263 | LLAppViewer::instance()->getSerialNumber()); | 1277 | LLAppViewer::instance()->getSerialNumber()); |
@@ -1272,7 +1286,7 @@ bool idle_startup() | |||
1272 | gSkipOptionalUpdate, | 1286 | gSkipOptionalUpdate, |
1273 | gAcceptTOS, | 1287 | gAcceptTOS, |
1274 | gAcceptCriticalMessage, | 1288 | gAcceptCriticalMessage, |
1275 | gLastExecEvent, | 1289 | last_exec_event, |
1276 | requested_options, | 1290 | requested_options, |
1277 | hashed_mac_string, | 1291 | hashed_mac_string, |
1278 | LLAppViewer::instance()->getSerialNumber()); | 1292 | LLAppViewer::instance()->getSerialNumber()); |
@@ -1510,6 +1524,11 @@ bool idle_startup() | |||
1510 | 1524 | ||
1511 | if(successful_login) | 1525 | if(successful_login) |
1512 | { | 1526 | { |
1527 | { | ||
1528 | std::string current_grid = gHippoGridManager->getConnectedGrid()->getGridNick(); | ||
1529 | gSavedSettings.setString("LastConnectedGrid", current_grid); | ||
1530 | } | ||
1531 | |||
1513 | std::string text; | 1532 | std::string text; |
1514 | text = LLUserAuth::getInstance()->getResponse("udp_blacklist"); | 1533 | text = LLUserAuth::getInstance()->getResponse("udp_blacklist"); |
1515 | if(!text.empty()) | 1534 | if(!text.empty()) |