From d76fd2946ace3cc3a4fc55148be77ec6dbaaa1ac Mon Sep 17 00:00:00 2001 From: Dirk Holtwick Date: Sat, 14 Jul 2012 11:29:34 +0200 Subject: [PATCH] Added connection error alert Signed-off-by: Dirk Holtwick --- Examples/OSX/InboxLister/MyController.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples/OSX/InboxLister/MyController.m b/Examples/OSX/InboxLister/MyController.m index a2d26ba..21d13db 100644 --- a/Examples/OSX/InboxLister/MyController.m +++ b/Examples/OSX/InboxLister/MyController.m @@ -36,8 +36,8 @@ password:[password stringValue]]; if(![myAccount isConnected]) { - NSLog(@"NOT CONNECTED!"); - // return; + NSRunCriticalAlertPanel(@"Connection Error", @"Please check your connection details and try again.", @"OK", nil, nil); + return; } // NSLog(@"Folders %@", [myAccount allFolders]);