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) {
|
if (!ok) {
|
||||||
for (unsigned i = 1 ; i < 100; ++i) {
|
for (unsigned i = 1 ; i < 100; ++i) {
|
||||||
NSString *tmp = [name stringByAppendingFormat: @"(%d)", i];
|
NSString *tmp = [name stringByAppendingFormat: @" (%d)", i];
|
||||||
[base URLByAppendingPathComponent: tmp];
|
url = [base URLByAppendingPathComponent: tmp];
|
||||||
|
|
||||||
ok = [data writeToURL: url options: NSDataWritingWithoutOverwriting error: &error];
|
ok = [data writeToURL: url options: NSDataWritingWithoutOverwriting error: &error];
|
||||||
if (ok) {
|
if (ok) {
|
||||||
|
|
Loading…
Reference in New Issue