[epiphany/wip/bookmarks: 39/76] bookmarks-manager: Emit 'bookmark-added' signal only if the function completed successfully
- From: Iulian Radu <iulianradu src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/bookmarks: 39/76] bookmarks-manager: Emit 'bookmark-added' signal only if the function completed successfully
- Date: Wed, 28 Sep 2016 13:20:04 +0000 (UTC)
commit a202ffd139af641ccb3e71fe58f5575b9086fd90
Author: Iulian Radu <iulian radu67 gmail com>
Date: Mon Aug 22 14:13:13 2016 +0300
bookmarks-manager: Emit 'bookmark-added' signal only if the function completed successfully
src/ephy-bookmarks-manager.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/ephy-bookmarks-manager.c b/src/ephy-bookmarks-manager.c
index 7ca5f21..d47f772 100644
--- a/src/ephy-bookmarks-manager.c
+++ b/src/ephy-bookmarks-manager.c
@@ -273,12 +273,12 @@ ephy_bookmarks_manager_add_bookmark (EphyBookmarksManager *self,
position = g_sequence_iter_get_position (iter);
g_list_model_items_changed (G_LIST_MODEL (self), position - 1, 0, 1);
+ g_signal_emit (self, signals[BOOKMARK_ADDED], 0, bookmark);
+
ephy_bookmarks_manager_save_to_file_async (self, NULL,
(GAsyncReadyCallback)data_saved_cb,
NULL);
}
-
- g_signal_emit (self, signals[BOOKMARK_ADDED], 0, bookmark);
}
void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]