[epiphany] Drop duplicate bookmarks during import
- From: Jan-Michael Brummer <jbrummer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany] Drop duplicate bookmarks during import
- Date: Tue, 28 Apr 2020 13:14:19 +0000 (UTC)
commit c87cdbd80774c2b5f5146e52225a79c058ae45bb
Author: Jan-Michael Brummer <jan brummer tabos org>
Date: Sat Apr 25 00:09:44 2020 +0200
Drop duplicate bookmarks during import
Fixes: https://gitlab.gnome.org/GNOME/epiphany/-/issues/485
src/bookmarks/ephy-bookmark.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmark.c b/src/bookmarks/ephy-bookmark.c
index de1c11074..30244fc64 100644
--- a/src/bookmarks/ephy-bookmark.c
+++ b/src/bookmarks/ephy-bookmark.c
@@ -478,8 +478,8 @@ ephy_bookmark_bookmarks_compare_func (EphyBookmark *bookmark1,
const char *title1;
const char *title2;
int title_result;
- const char *id1;
- const char *id2;
+ const char *url1;
+ const char *url2;
g_assert (EPHY_IS_BOOKMARK (bookmark1));
g_assert (EPHY_IS_BOOKMARK (bookmark2));
@@ -495,10 +495,10 @@ ephy_bookmark_bookmarks_compare_func (EphyBookmark *bookmark1,
if (title_result != 0)
return title_result;
- id1 = ephy_bookmark_get_id (bookmark1);
- id2 = ephy_bookmark_get_id (bookmark2);
+ url1 = ephy_bookmark_get_url (bookmark1);
+ url2 = ephy_bookmark_get_url (bookmark2);
- return g_strcmp0 (id1, id2);
+ return g_strcmp0 (url1, url2);
}
int
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]