From 6ad09b875cd58aedcc5ce1c6edeea05adc16a633 Mon Sep 17 00:00:00 2001
From: Oz Linden <oz@lindenlab.com>
Date: Tue, 26 Jun 2012 15:14:33 -0400
Subject: [PATCH] PATH-773: correct update of grid and location selectors for
 arbitrary locations

---
 indra/newview/llstartup.cpp | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/indra/newview/llstartup.cpp b/indra/newview/llstartup.cpp
index 1f94f0a22ae..417419d13cb 100644
--- a/indra/newview/llstartup.cpp
+++ b/indra/newview/llstartup.cpp
@@ -2828,16 +2828,14 @@ void LLStartUp::setStartSLURL(const LLSLURL& slurl)
   switch(slurl.getType())
     {
     case LLSLURL::HOME_LOCATION:
-		gSavedSettings.setString("LoginLocation", LLSLURL::SIM_LOCATION_HOME);
-		break;
     case LLSLURL::LAST_LOCATION:
-		gSavedSettings.setString("LoginLocation", LLSLURL::SIM_LOCATION_LAST);
+    case LLSLURL::LOCATION:
+		gSavedSettings.setString("LoginLocation", LLSLURL::SIM_LOCATION_HOME);
+		LLPanelLogin::onUpdateStartSLURL(slurl); // updates grid if needed
 		break;
     default:
 		break;
     }
-
-  LLPanelLogin::onUpdateStartSLURL(slurl); // updates grid if needed
 }
 
 /**
-- 
GitLab