Fixed bug MR-810. Omit setting the IsDefault setting when turning inheritance on completely

This commit is contained in:
Sparer, David
2016-05-18 09:42:26 -06:00
parent 7d6e814745
commit 7b177f1fd8

View File

@@ -365,13 +365,13 @@ namespace mRemoteNG.Connection
{
SetAllValues(false);
}
private void SetAllValues(bool value)
{
var properties = typeof(ConnectionInfoInheritance).GetProperties();
foreach (var property in properties)
{
if (property.PropertyType.Name == typeof(Boolean).Name && property.Name != "EverythingInherited")
if (property.PropertyType.Name == typeof(Boolean).Name && property.Name != "EverythingInherited" && property.Name != "IsDefault")
property.SetValue(this, value, null);
}
}