[epiphany/wip/ephy-sync] sync-service: Silently return if the user is not signed in when trying to delete a bookmark from ser



commit 978cfeef93c86ff4b73f7ce4a9a5dca53515d2a5
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date:   Tue Sep 27 17:15:33 2016 +0300

    sync-service: Silently return if the user is not signed in when trying to delete a bookmark from server

 src/ephy-sync-service.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/ephy-sync-service.c b/src/ephy-sync-service.c
index 2d7824d..57c9f30 100644
--- a/src/ephy-sync-service.c
+++ b/src/ephy-sync-service.c
@@ -1129,9 +1129,11 @@ ephy_sync_service_delete_bookmark (EphySyncService *self,
   char *endpoint;
 
   g_return_if_fail (EPHY_IS_SYNC_SERVICE (self));
-  g_return_if_fail (ephy_sync_service_is_signed_in (self));
   g_return_if_fail (EPHY_IS_BOOKMARK (bookmark));
 
+  if (ephy_sync_service_is_signed_in (self) == FALSE)
+    return;
+
   endpoint = g_strdup_printf ("storage/%s/%s",
                               EPHY_BOOKMARKS_COLLECTION,
                               ephy_bookmark_get_id (bookmark));


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