Default fields are now respected too in validation

This commit is contained in:
michael starke
2013-07-19 03:14:41 +02:00
parent fef291df88
commit 859fe5ede8
3 changed files with 6 additions and 1 deletions

View File

@@ -14,7 +14,12 @@
/* /*
FIXME: Introduce some cachin behaviour. We iterate over after every single edit FIXME: Introduce some cachin behaviour. We iterate over after every single edit
*/ */
NSMutableSet *keys = [[NSMutableSet alloc] initWithCapacity:[self.stringFields count]]; NSArray *defaultKeys = @[ FIELD_TITLE,
FIELD_USER_NAME,
FIELD_PASSWORD,
FIELD_URL,
FIELD_NOTES ];
NSMutableSet *keys = [[NSMutableSet alloc] initWithArray:defaultKeys];
for(StringField *field in self.stringFields) { for(StringField *field in self.stringFields) {
[keys addObject:field.key]; [keys addObject:field.key];
} }

Binary file not shown.

Binary file not shown.