diff options
author | mltownsend <mltownsend@gmail.com> | 2010-02-10 05:54:30 +0000 |
---|---|---|
committer | mltownsend <mltownsend@gmail.com> | 2010-02-10 05:54:30 +0000 |
commit | 25f4268b73d93af0eb30a38214ced39d034250ff (patch) | |
tree | f06a30af32ac216362a7816a653bc6735f5e36af /Source | |
parent | 13805614e6ed2131827bfa6c668b50a1b30da1e5 (diff) | |
download | sequelpro-25f4268b73d93af0eb30a38214ced39d034250ff.tar.gz sequelpro-25f4268b73d93af0eb30a38214ced39d034250ff.tar.bz2 sequelpro-25f4268b73d93af0eb30a38214ced39d034250ff.zip |
Made it so that the host can't be null. Goes to '%' by default.
Diffstat (limited to 'Source')
-rw-r--r-- | Source/SPUserMO.m | 14 | ||||
-rw-r--r-- | Source/SPUserManager.xcdatamodel/elements | bin | 127762 -> 127952 bytes | |||
-rw-r--r-- | Source/SPUserManager.xcdatamodel/layout | bin | 9663 -> 9663 bytes |
3 files changed, 13 insertions, 1 deletions
diff --git a/Source/SPUserMO.m b/Source/SPUserMO.m index 061f4658..5c5bd40e 100644 --- a/Source/SPUserMO.m +++ b/Source/SPUserMO.m @@ -41,7 +41,19 @@ if ([self valueForKey:@"parent"] == nil) [self setValue:value forKey:@"user"]; else - [self setValue:value forKey:@"host"]; + { + if (value == nil) + { + [self setValue:@"%" forKey:@"host"]; + } + else + { + [self setValue:value forKey:@"host"]; + } + + + } + } - (void)addChildrenObject:(NSManagedObject *)value diff --git a/Source/SPUserManager.xcdatamodel/elements b/Source/SPUserManager.xcdatamodel/elements Binary files differindex 66ebccfc..06b2000e 100644 --- a/Source/SPUserManager.xcdatamodel/elements +++ b/Source/SPUserManager.xcdatamodel/elements diff --git a/Source/SPUserManager.xcdatamodel/layout b/Source/SPUserManager.xcdatamodel/layout Binary files differindex 44b16b93..4bc143ed 100644 --- a/Source/SPUserManager.xcdatamodel/layout +++ b/Source/SPUserManager.xcdatamodel/layout |