[grilo-plugins] bookmarks: Only emit "item removed" if actually removed
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [grilo-plugins] bookmarks: Only emit "item removed" if actually removed
- Date: Tue, 27 Jan 2015 17:36:34 +0000 (UTC)
commit ae10b48dff54a07ea638421554cab207b8bb1ced
Author: Bastien Nocera <hadess hadess net>
Date: Tue Dec 2 18:28:39 2014 +0100
bookmarks: Only emit "item removed" if actually removed
src/bookmarks/grl-bookmarks.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/bookmarks/grl-bookmarks.c b/src/bookmarks/grl-bookmarks.c
index 46e9c30..c7f0109 100644
--- a/src/bookmarks/grl-bookmarks.c
+++ b/src/bookmarks/grl-bookmarks.c
@@ -631,7 +631,7 @@ remove_bookmark (GrlBookmarksSource *bookmarks_source,
g_object_unref (resource);
- if (bookmarks_source->priv->notify_changes) {
+ if (*error != NULL && bookmarks_source->priv->notify_changes) {
/* We can improve accuracy computing the parent container of removed
element */
grl_source_notify_change (GRL_SOURCE (bookmarks_source),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]