Use the sharedApplication delegate instead of NSApp's delegate. Fixes #16795
authorFrank Dowsett <wixardy@adium.im>
Mon, 04 Aug 2014 16:49:27 -0400
changeset 5893 1e1382dbd844
parent 5890 fb9288582076
child 5938 4c4548a08069
child 5949 334dc418b409
Use the sharedApplication delegate instead of NSApp's delegate. Fixes #16795
Source/AdiumOTREncryption.m
Source/XtrasInstaller.m
--- a/Source/AdiumOTREncryption.m	Sun Jul 20 23:10:26 2014 -0400
+++ b/Source/AdiumOTREncryption.m	Mon Aug 04 16:49:27 2014 -0400
@@ -57,8 +57,6 @@
 
 - (void)setSecurityDetails:(NSDictionary *)securityDetailsDict forChat:(AIChat *)inChat;
 
-- (void)upgradeOTRIfNeeded;
-
 - (void)adiumFinishedLaunching:(NSNotification *)inNotification;
 - (void)adiumWillTerminate:(NSNotification *)inNotification;
 - (void)updateSecurityDetails:(NSNotification *)inNotification;
--- a/Source/XtrasInstaller.m	Sun Jul 20 23:10:26 2014 -0400
+++ b/Source/XtrasInstaller.m	Mon Aug 04 16:49:27 2014 -0400
@@ -343,8 +343,8 @@
 
 					//Open the file directly
 					AILogWithSignature(@"Installing %@",xtraPath);
-					success = [[NSApp delegate] application:NSApp
-											   openTempFile:xtraPath];
+					success = [[[NSApplication sharedApplication] delegate] application:NSApp
+																		   openTempFile:xtraPath];
 
 					if (!success) {
 						NSLog(@"Installation Error: %@",xtraPath);