txtPassword.Text = s["password"].AsString();\r
netcom.LoginOptions.IsPasswordMD5 = true;\r
\r
- cbxLocation.SelectedIndex = s["login_location_type"].AsInteger();\r
- cbxLocation.Text = s["login_location"].AsString();\r
+ // Use last location as default\r
+ if (s["login_location_type"].Type == OSDType.Unknown)\r
+ {\r
+ cbxLocation.SelectedIndex = 1;\r
+ s["login_location_type"] = OSD.FromInteger(1);\r
+ }\r
+ else\r
+ {\r
+ cbxLocation.SelectedIndex = s["login_location_type"].AsInteger();\r
+ cbxLocation.Text = s["login_location"].AsString();\r
+ }\r
\r
cbxGrid.SelectedIndex = s["login_grid"].AsInteger();\r
txtCustomLoginUri.Text = s["login_uri"].AsString();\r
// Autogenerated: run updatebuildnr.bat/sh to update \r
namespace Radegast \r
{ \r
- public static class RadegastBuild { public static int CurrentRev = 337; } \r
+ public static class RadegastBuild { public static int CurrentRev = 338; } \r
} \r