[epiphany/wip/sync: 84/86] bookmarks-manager: Search by id when removing bookmarks



commit d7726eb30c6ddd1b6f97d6e61def781cee110b84
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date:   Tue Mar 28 14:12:01 2017 +0300

    bookmarks-manager: Search by id when removing bookmarks

 src/bookmarks/ephy-bookmarks-manager.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmarks-manager.c b/src/bookmarks/ephy-bookmarks-manager.c
index 06cdb88..a0a2ab6 100644
--- a/src/bookmarks/ephy-bookmarks-manager.c
+++ b/src/bookmarks/ephy-bookmarks-manager.c
@@ -533,8 +533,8 @@ ephy_bookmarks_manager_remove_bookmark (EphyBookmarksManager *self,
   for (iter = g_sequence_get_begin_iter (self->bookmarks);
          !g_sequence_iter_is_end (iter);
          iter = g_sequence_iter_next (iter)) {
-    if (g_strcmp0 (ephy_bookmark_get_url (g_sequence_get (iter)),
-                   ephy_bookmark_get_url (bookmark)) == 0)
+    if (g_strcmp0 (ephy_bookmark_get_id (g_sequence_get (iter)),
+                   ephy_bookmark_get_id (bookmark)) == 0)
       break;
   }
   g_assert (!g_sequence_iter_is_end (iter));


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]