aboutsummaryrefslogtreecommitdiffstats
path: root/Source
diff options
context:
space:
mode:
authormltownsend <mltownsend@gmail.com>2010-02-10 05:54:30 +0000
committermltownsend <mltownsend@gmail.com>2010-02-10 05:54:30 +0000
commit25f4268b73d93af0eb30a38214ced39d034250ff (patch)
treef06a30af32ac216362a7816a653bc6735f5e36af /Source
parent13805614e6ed2131827bfa6c668b50a1b30da1e5 (diff)
downloadsequelpro-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.m14
-rw-r--r--Source/SPUserManager.xcdatamodel/elementsbin127762 -> 127952 bytes
-rw-r--r--Source/SPUserManager.xcdatamodel/layoutbin9663 -> 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
index 66ebccfc..06b2000e 100644
--- a/Source/SPUserManager.xcdatamodel/elements
+++ b/Source/SPUserManager.xcdatamodel/elements
Binary files differ
diff --git a/Source/SPUserManager.xcdatamodel/layout b/Source/SPUserManager.xcdatamodel/layout
index 44b16b93..4bc143ed 100644
--- a/Source/SPUserManager.xcdatamodel/layout
+++ b/Source/SPUserManager.xcdatamodel/layout
Binary files differ