diff options
author | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2015-09-04 15:47:23 +0100 |
---|---|---|
committer | Zeeshan Ali (Khattak) <zeeshanak@gnome.org> | 2015-09-04 16:05:55 +0100 |
commit | b71f756e47abeab9af0a736c434ef414d85ec67e (patch) | |
tree | 9eabfff2fb2dad95e786d5f57ee535458bbe19ef | |
parent | ece2a872c1b944cf24bd631d907c3b7cfcb484a9 (diff) |
locator: Append newly activated source to list
Don't forget to add the newly activated source to the private list of
active sources, otherwise it won't be stopped when it's accuracy level
changes to none or greater than max accuracy.
-rw-r--r-- | src/gclue-locator.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gclue-locator.c b/src/gclue-locator.c index b9bcf2e..3187961 100644 --- a/src/gclue-locator.c +++ b/src/gclue-locator.c @@ -204,6 +204,9 @@ on_avail_accuracy_level_changed (GObject *gobject, priv->accuracy_level >= level && !is_source_active (locator, src)) { start_source (locator, src); + + priv->active_sources = + g_list_append (locator->priv->active_sources, src); } else if ((level == GCLUE_ACCURACY_LEVEL_NONE || priv->accuracy_level < level) && is_source_active (locator, src)) { |