[epiphany/wip/sync: 27/31] bookmark-properties-grid: Delete bookmark from server only if there is a sync user
- From: Gabriel Ivașcu <gabrielivascu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/sync: 27/31] bookmark-properties-grid: Delete bookmark from server only if there is a sync user
- Date: Fri, 14 Apr 2017 15:53:49 +0000 (UTC)
commit b6c9763155b9800c5c101abe678a57b056aa8907
Author: Gabriel Ivascu <ivascu gabriel59 gmail com>
Date: Fri Apr 14 16:50:37 2017 +0300
bookmark-properties-grid: Delete bookmark from server only if there is a sync user
src/bookmarks/ephy-bookmark-properties-grid.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/bookmarks/ephy-bookmark-properties-grid.c b/src/bookmarks/ephy-bookmark-properties-grid.c
index 78fe8db..d85f704 100644
--- a/src/bookmarks/ephy-bookmark-properties-grid.c
+++ b/src/bookmarks/ephy-bookmark-properties-grid.c
@@ -244,9 +244,10 @@ ephy_bookmarks_properties_grid_actions_remove_bookmark (GSimpleAction *action,
g_assert (EPHY_IS_BOOKMARK_PROPERTIES_GRID (self));
service = ephy_shell_get_sync_service (ephy_shell_get_default ());
- ephy_sync_service_delete_synchronizable (service,
- EPHY_SYNCHRONIZABLE_MANAGER (self->manager),
- EPHY_SYNCHRONIZABLE (self->bookmark));
+ if (ephy_sync_service_is_signed_in (service))
+ ephy_sync_service_delete_synchronizable (service,
+ EPHY_SYNCHRONIZABLE_MANAGER (self->manager),
+ EPHY_SYNCHRONIZABLE (self->bookmark));
ephy_bookmarks_manager_remove_bookmark (self->manager, self->bookmark);
if (self->type == EPHY_BOOKMARK_PROPERTIES_GRID_TYPE_DIALOG)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]