aboutsummaryrefslogtreecommitdiffstats
path: root/Source/SPTreeNode.m
diff options
context:
space:
mode:
authorAbhi Beckert <abhi@abhibeckert.com>2016-04-10 14:13:33 +1000
committerAbhi Beckert <abhi@abhibeckert.com>2016-04-10 14:13:33 +1000
commit099ea061262413118f81cf9e3aff30bd2b568597 (patch)
treef7d0a49c6e00eb48b38603269bb9aaa24181fcdf /Source/SPTreeNode.m
parentb7875e8fdbdc5980c12a847997cc9631979dd4d3 (diff)
downloadsequelpro-099ea061262413118f81cf9e3aff30bd2b568597.tar.gz
sequelpro-099ea061262413118f81cf9e3aff30bd2b568597.tar.bz2
sequelpro-099ea061262413118f81cf9e3aff30bd2b568597.zip
fix warnings
Diffstat (limited to 'Source/SPTreeNode.m')
-rw-r--r--Source/SPTreeNode.m5
1 files changed, 4 insertions, 1 deletions
diff --git a/Source/SPTreeNode.m b/Source/SPTreeNode.m
index f6d419d8..90ef0832 100644
--- a/Source/SPTreeNode.m
+++ b/Source/SPTreeNode.m
@@ -295,7 +295,10 @@ static NSString *SPTreeNodeIsGroupKey = @"SPTreeNodeIsGroup";
- (id)initWithCoder:(NSCoder *)coder
{
-#warning This is not a valid initializer.
+ if (!(self = [super init])) {
+ return nil;
+ }
+
[self setIsGroup:[[coder decodeObjectForKey:SPTreeNodeIsGroupKey] boolValue]];
return self;