X-Git-Url: http://cgit.babelmonkeys.de/?p=jubjub.git;a=blobdiff_plain;f=src%2Fcore%2Fmain.m;h=6b03d9565f4563b6e2e46b0eee654d460d5049c0;hp=ff97a3b602b56b98e01f071e7c3040923f23e912;hb=544eceba439fbb1f6cf6952f3f4472e7e9817695;hpb=bea722223cba21d832750c78aee6ccf344400804 diff --git a/src/core/main.m b/src/core/main.m index ff97a3b..6b03d95 100644 --- a/src/core/main.m +++ b/src/core/main.m @@ -18,6 +18,8 @@ OF_APPLICATION_DELEGATE(AppDelegate) - (void)applicationDidFinishLaunching { ui = [[JubGtkUI alloc] init]; + id rosterDelegate = + [ui rosterDelegate]; connection = [[XMPPConnection alloc] init]; [connection addDelegate: self]; @@ -29,10 +31,10 @@ OF_APPLICATION_DELEGATE(AppDelegate) [connection connect]; [connection handleConnection]; - [connection addDelegate: [ui rosterDelegate]]; + [connection addDelegate: rosterDelegate]; roster = [[XMPPRoster alloc] initWithConnection: connection]; - [roster addDelegate: [ui rosterDelegate]]; + [roster addDelegate: rosterDelegate]; [roster addDelegate: self]; [ui startUIThread];