Fix: sparkleBundle not calculated correctly when SUUpdater is subclassed by a class in a different bundle.

This commit is contained in:
Oz Solomon committed 2015-10-21 09:39:14 -04:00
1 parent a7af6fb82d
commit ff7966d96a
1 file changed
+1 -1
+1 -1
View File
@@ -83,7 +83,7 @@ static NSString *const SUUpdaterDefaultsObservationContext = @"SUUpdaterDefaults
self = [super init];
if (bundle == nil) bundle = [NSBundle mainBundle];
self.sparkleBundle = [NSBundle bundleForClass:[self class]];
self.sparkleBundle = [NSBundle bundleForClass:[SUUpdater class]];
if (!self.sparkleBundle) {
SULog(@"Error: SUUpdater can't find Sparkle.framework it belongs to");
return nil;