diff options
author | mltownsend <mltownsend@gmail.com> | 2010-02-04 18:21:45 +0000 |
---|---|---|
committer | mltownsend <mltownsend@gmail.com> | 2010-02-04 18:21:45 +0000 |
commit | 9903700d95e23ad908ba3b3185e6a56a1206f659 (patch) | |
tree | 35a735fb709b737354f4f20337e2c0968ca1603e /Source/SPUserMO.m | |
parent | 2c5453a01eae97bf03f16cfd088f2f069bb0594d (diff) | |
download | sequelpro-9903700d95e23ad908ba3b3185e6a56a1206f659.tar.gz sequelpro-9903700d95e23ad908ba3b3185e6a56a1206f659.tar.bz2 sequelpro-9903700d95e23ad908ba3b3185e6a56a1206f659.zip |
Fix for issue #560. Still needs validation on hitting Apply, but fixes the initial problem.
Diffstat (limited to 'Source/SPUserMO.m')
-rw-r--r-- | Source/SPUserMO.m | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPUserMO.m b/Source/SPUserMO.m index 386e4831..c4980391 100644 --- a/Source/SPUserMO.m +++ b/Source/SPUserMO.m @@ -38,7 +38,10 @@ - (void)setDisplayName:(NSString *)value { - [self setValue:value forKey:@"host"]; + if ([self valueForKey:@"parent"] == nil) + [self setValue:value forKey:@"user"]; + else + [self setValue:value forKey:@"host"]; } - (void)addChildrenObject:(NSManagedObject *)value |