Skip to content

Commit 51f8536

Browse files
committed
[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>
1 parent bc23ed6 commit 51f8536

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

Preferences/Preferences/SandboxPathBehaviorController.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,6 @@ - (void)addUrl:(NSURL *)url {
7070
[pc.viewContext save:&err];
7171
if(err) {
7272
ALog(@"Error saving bookmark: %@", [err localizedDescription]);
73-
[pc.viewContext deleteObject:token];
7473
} else {
7574
[self addObject:@{ @"path": [url path], @"valid": NSLocalizedPrefString(@"ValidYes") }];
7675
}

0 commit comments

Comments
 (0)