X-Git-Url: http://git.ithinksw.org/MenuTunes.git/blobdiff_plain/8ae00032eb40faf1db88f878885d716a1820406c..955343cfbfebf6b68b127629d9b6a76f80ba023a:/MTBlingController.m diff --git a/MTBlingController.m b/MTBlingController.m index fb1a66b..7541747 100755 --- a/MTBlingController.m +++ b/MTBlingController.m @@ -8,6 +8,7 @@ #import "MTBlingController.h" #import "MTeSerialNumber.h" +#import "MainController.h" #define APP_SUPPORT_PATH_STRING [@"~/Library/Application Support/MenuTunes/" stringByExpandingTildeInPath] #define LICENSE_PATH_STRING [APP_SUPPORT_PATH_STRING stringByAppendingString:@"/.license"] @@ -115,7 +116,7 @@ nil, nil, nil, NSLocalizedString(@"failed_msg", @"Failed Message")); } - + [[MainController sharedController] blingTime]; } - (int)checkKeyFile @@ -137,11 +138,12 @@ { if ( ! (checkDone == 2475) ) { if ( ! ([self checkKeyFile] == 7465) ) { - return 0 + checkDone = 0; } else { - return 2475; + checkDone = 2475; } } + return checkDone; } - (void)finishValidSheet:(NSWindow *)sheet returnCode:(int)returnCode contextInfo:(void *)contextInfo