bookmark duplicate name logic didn't work...

This commit is contained in:
Kelvin Sherlock 2021-07-07 07:15:28 -04:00
parent 9ab4b8373d
commit ec020cf028
1 changed files with 2 additions and 2 deletions

View File

@ -119,8 +119,8 @@ static BookmarkManager *singleton = nil;
if (!ok) {
for (unsigned i = 1 ; i < 100; ++i) {
NSString *tmp = [name stringByAppendingFormat: @"(%d)", i];
[base URLByAppendingPathComponent: tmp];
NSString *tmp = [name stringByAppendingFormat: @" (%d)", i];
url = [base URLByAppendingPathComponent: tmp];
ok = [data writeToURL: url options: NSDataWritingWithoutOverwriting error: &error];
if (ok) {