diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gclue-locator.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gclue-locator.c b/src/gclue-locator.c index 150d829..5820f99 100644 --- a/src/gclue-locator.c +++ b/src/gclue-locator.c @@ -387,7 +387,9 @@ gclue_locator_constructed (GObject *object) GClueModemGPS *gps = gclue_modem_gps_get_singleton (); locator->priv->sources = g_list_append (locator->priv->sources, gps); - submit_source = GCLUE_LOCATION_SOURCE (gps); + if (!submit_source) { + submit_source = GCLUE_LOCATION_SOURCE (gps); + } } #endif #if GCLUE_USE_NMEA_SOURCE @@ -395,6 +397,10 @@ gclue_locator_constructed (GObject *object) GClueNMEASource *nmea = gclue_nmea_source_get_singleton (); locator->priv->sources = g_list_append (locator->priv->sources, nmea); + if (!submit_source) { + submit_source = GCLUE_LOCATION_SOURCE (nmea); + } + } #endif |