diff options
author | Mohammed Hassan <mohammed.hassan@jollamobile.com> | 2013-01-17 18:10:54 +0200 |
---|---|---|
committer | Juan A. Suarez Romero <jasuarez@igalia.com> | 2013-01-20 23:30:18 +0000 |
commit | 18ee3f35540d8541b4308851eee2519ca8e03fb9 (patch) | |
tree | a7e18ae59973b554ceaeafdcbcda440884ea3dfe | |
parent | 088318e474d7ce83d3638afe2474a9162d6a08d2 (diff) |
Account for grl_tracker_per_device_source while looking up the GrlTrackerSource
We will never find a GrlTrackerSource corresponding to any tracker data source if we are
using a catch all (not per device) source. In that case we simply try to find the one
and only source we have and use it for notifications.
https://bugzilla.gnome.org/show_bug.cgi?id=691717
-rw-r--r-- | src/tracker/grl-tracker-source-notif.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tracker/grl-tracker-source-notif.c b/src/tracker/grl-tracker-source-notif.c index 1f5a571..6bf122a 100644 --- a/src/tracker/grl-tracker-source-notif.c +++ b/src/tracker/grl-tracker-source-notif.c @@ -214,7 +214,10 @@ tracker_evt_update_orphan_item_cb (GObject *object, GRL_DEBUG ("\tOrphan item: id=%u datasource=%s", id, datasource); - if (datasource) + if (!grl_tracker_per_device_source) + source = grl_tracker_source_find (""); + + if (!source && datasource) source = grl_tracker_source_find (datasource); if (source && GRL_IS_TRACKER_SOURCE (source)) { |