Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[MKLevinController] iterate over all stored scan paths and not only t…

…he last one
  • Loading branch information...
commit 89da74688010f803237088ca64407ec614a13888 1 parent fd7a367
@mkroehnert authored
Showing with 6 additions and 2 deletions.
  1. +6 −2 source/MKLevinController.m
View
8 source/MKLevinController.m
@@ -60,10 +60,14 @@ - (IBAction) showPreferences:(id)sender
- (void) applicationDidFinishLaunching:(NSNotification *)aNotification
{
if (0 == [[scanPathController arrangedObjects] count])
- {
[self promptForScanpath:nil];
+
+ NSEnumerator* scanPathEnumerator = [[scanPathController arrangedObjects] objectEnumerator];
+ id scanPath;
+ while ((scanPath = [scanPathEnumerator nextObject]))
+ {
+ [self collectAllSwfFilesFromDirectory:scanPath];
}
- [self collectAllSwfFilesFromDirectory:[[scanPathController arrangedObjects] lastObject]];
[swfFilesController addObserver:self forKeyPath:SWF_FILES_CONTROLLER_KEY options:NSKeyValueObservingOptionNew context:nil];
}
Please sign in to comment.
Something went wrong with that request. Please try again.