summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2021-02-20 18:14:05 +0000
committerAlastair Poole <netstar@gmail.com>2021-02-20 18:14:05 +0000
commitd91f0a6c0f3f14a81644e9b530e0b72f3aa08580 (patch)
tree3886e89fe4a30e13cbb6af5f8a96c9c16be4cdb7
parent035ded650811aa96a0f0e3d4ed81f0f16e5c9793 (diff)
weather: update earlier on new config.
-rw-r--r--src/e_mod_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/e_mod_main.c b/src/e_mod_main.c
index 2afb91e..e86493e 100644
--- a/src/e_mod_main.c
+++ b/src/e_mod_main.c
@@ -950,7 +950,8 @@ _forecasts_config_updated(Config_Item *ci)
950 if (inst->ci != ci) continue; 950 if (inst->ci != ci) continue;
951 int area_changed = 0; 951 int area_changed = 0;
952 952
953 if (inst->area && strcmp(inst->area, inst->ci->location)) 953 if ((!inst->area && inst->ci->location) ||
954 (inst->area && strcmp(inst->area, inst->ci->location)))
954 area_changed = 1; 955 area_changed = 1;
955 956
956 if (inst->area) eina_stringshare_del(inst->area); 957 if (inst->area) eina_stringshare_del(inst->area);