From fcbd87177e9549598d7eef5c95458c282cd80222 Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 16 Oct 2006 02:47:10 +0000 Subject: [PATCH] small auto-import change --- macosx/Controller.m | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/macosx/Controller.m b/macosx/Controller.m index c794bb4c8..c96e3947b 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -364,6 +364,8 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy fSpeedLimitTimer = [NSTimer scheduledTimerWithTimeInterval: AUTO_SPEED_LIMIT_SECONDS target: self selector: @selector(autoSpeedLimit:) userInfo: nil repeats: YES]; + //auto importing + fAutoImportedNames = [[NSMutableArray alloc] init]; [self checkAutoImportDirectory]; } @@ -1582,7 +1584,7 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy //only import those that have not been imported yet NSMutableArray * newNames = [importedNames mutableCopy]; [newNames removeObjectsInArray: fAutoImportedNames]; - [fAutoImportedNames addObjectsFromArray: newNames]; + [fAutoImportedNames setArray: importedNames]; NSEnumerator * enumerator = [newNames objectEnumerator]; NSString * file;