summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgweather/gweather-weather.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/libgweather/gweather-weather.c b/libgweather/gweather-weather.c
index e5548a4..c505ccd 100644
--- a/libgweather/gweather-weather.c
+++ b/libgweather/gweather-weather.c
@@ -690,6 +690,12 @@ gweather_info_update (GWeatherInfo *info)
{
gboolean ok;
+ if (info->providers == GWEATHER_PROVIDER_NONE)
+ return;
+
+ g_return_if_fail (info->application_id != NULL);
+ g_return_if_fail (g_application_id_is_valid (info->application_id));
+
/* Update in progress */
if (!requests_init (info))
return ;