From 0278ad2c02c65717e3c7de22ef0e1e0afe91816b Mon Sep 17 00:00:00 2001 From: Jens Lody Date: Mon, 30 Oct 2017 19:23:02 +0100 Subject: [PATCH] Fix warning about non-existing property. --- src/prefs.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/prefs.js b/src/prefs.js index 87a15b7..1ebd3b1 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -515,7 +515,8 @@ const WeatherPrefsWidget = new GObject.Class({ let config = this.configWidgets; for (let i in config) { - if (config[i][0].active != this[config[i][1]]) + if ((config[i][0].active !== undefined) && + (config[i][0].active != this[config[i][1]])) config[i][0].active = this[config[i][1]]; } },