From 5ef20235d866a549d39e3a3f71add569e99ce787 Mon Sep 17 00:00:00 2001 From: Matthieu Lalonde Date: Sat, 4 Jun 2011 17:44:01 -0400 Subject: [PATCH] FIXED - Exiting when no prefs are set on the initial startup TODO - Add modal warning in the above condition --- DDWRT_MonitorAppDelegate.m | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/DDWRT_MonitorAppDelegate.m b/DDWRT_MonitorAppDelegate.m index af399f1..5150922 100644 --- a/DDWRT_MonitorAppDelegate.m +++ b/DDWRT_MonitorAppDelegate.m @@ -222,13 +222,11 @@ - (void) hideConfigPanel:(id)sender { - /*NSString *hostname = [[NSUserDefaults standardUserDefaults] stringForKey:@"hostname"]; - if (hostname == nil && [[sender title] isEqualToString:@"Cancel"]) { // TODO: Add modal alert "will quit if not configured" [self terminate:nil]; } - */ + [ConfigPanel orderOut:nil]; }