[Sandbox Configuration] Do not delete path on fail
Do not delete path from storage when save fails. Signed-off-by: Christopher Snowhill <kode54@gmail.com>swiftingly
parent
bc23ed6c24
commit
51f8536943
Preferences/Preferences
|
@ -70,7 +70,6 @@
|
||||||
[pc.viewContext save:&err];
|
[pc.viewContext save:&err];
|
||||||
if(err) {
|
if(err) {
|
||||||
ALog(@"Error saving bookmark: %@", [err localizedDescription]);
|
ALog(@"Error saving bookmark: %@", [err localizedDescription]);
|
||||||
[pc.viewContext deleteObject:token];
|
|
||||||
} else {
|
} else {
|
||||||
[self addObject:@{ @"path": [url path], @"valid": NSLocalizedPrefString(@"ValidYes") }];
|
[self addObject:@{ @"path": [url path], @"valid": NSLocalizedPrefString(@"ValidYes") }];
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue