diff --git a/src/prefs.js b/src/prefs.js index 1ebd3b1..9bbcb16 100644 --- a/src/prefs.js +++ b/src/prefs.js @@ -524,7 +524,7 @@ const WeatherPrefsWidget = new GObject.Class({ configWidgets: [], selectionChanged: function(select) { - let a = select.get_selected_rows(this.liststore)[0][0]; + let a = select.get_selected_rows()[0][0]; if (a !== undefined) if (this.actual_city != parseInt(a.to_string()))