~per.j/modazipin/trunk

« back to all changes in this revision

Viewing changes to AddInsList.m

  • Committer: Per Johansson
  • Date: 2011-02-27 12:21:26 UTC
  • Revision ID: per@morth.org-20110227122126-ibqqletg4o6vhplb
Tags: 1.1
Don't parse OverrideConfig.xml more than once (when rescanning)

Show diffs side-by-side

added added

removed removed

Lines of Context:
405
405
                                if ([[itemsController selectedObjects] indexOfObject:item] != NSNotFound)
406
406
                                        [self performSelectorOnMainThread:@selector(reloadDetails) withObject:nil waitUntilDone:NO];
407
407
                        }
408
 
                        if ([content caseInsensitiveCompare:@"OverrideConfig.xml"] == NSOrderedSame)
 
408
                        if ([content caseInsensitiveCompare:@"OverrideConfig.xml"] == NSOrderedSame && ![[item valueForKey:@"configSections"] count])
409
409
                        {
410
410
                                [self configurePersistentStoreCoordinatorForURL:[url fileReferenceURL] ofType:@"OverrideConfigStore" modelConfiguration:@"overrideconfig" storeOptions:[NSDictionary dictionaryWithObject:item forKey:@"item"] error:nil];
411
411
                                req = [[self managedObjectModel] fetchRequestFromTemplateWithName:@"configSectionsForItem" substitutionVariables:[NSDictionary dictionaryWithObject:item forKey:@"item"]];