mirror of https://github.com/ksherlock/ample.git
bookmark duplicate name logic didn't work...
This commit is contained in:
parent
9ab4b8373d
commit
ec020cf028
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue