mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 710330 - Allow duplicate bookmarks if parents differ. r=lucasr
This commit is contained in:
parent
d31e843326
commit
a3f4167662
@ -787,7 +787,14 @@ public class LocalBrowserDB implements BrowserDB.BrowserDBIface {
|
||||
// Update or insert
|
||||
ContentProviderOperation.Builder builder =
|
||||
ContentProviderOperation.newUpdate(bookmarkUri);
|
||||
builder.withSelection(Bookmarks.URL + " = ?", new String[] { url });
|
||||
// Bookmarks are defined by their URL and Folder.
|
||||
builder.withSelection(Bookmarks.URL + " = ? AND "
|
||||
+ Bookmarks.PARENT + " = ? AND "
|
||||
+ Bookmarks.PARENT + " != ?",
|
||||
new String[] { url,
|
||||
Long.toString(parent),
|
||||
String.valueOf(Bookmarks.FIXED_READING_LIST_ID)
|
||||
});
|
||||
builder.withValues(values);
|
||||
|
||||
// Queue the operation
|
||||
|
Loading…
Reference in New Issue
Block a user