adium/adium

Use the sharedApplication delegate instead of NSApp's delegate. Fixes #16795
--- 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);