From 32d03b671665cb16cdc04af6cb3ea102bc17f6a8 Mon Sep 17 00:00:00 2001 From: Neroth Date: Wed, 7 Nov 2012 14:11:58 +0100 Subject: [PATCH] Fix #61/#58 --- src/extension.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/extension.js b/src/extension.js index c0cfa24..8063c36 100644 --- a/src/extension.js +++ b/src/extension.js @@ -544,6 +544,13 @@ const WeatherMenuButton = new Lang.Class({ if(!cities[0]) cities = []; + if(cities.length == 0) + { + this._cities = "2373572>Cambridge, Massachusetts (US)"; + this.updateCities(); + return 0; + } + for(let a in cities) { if(!this.extractWoeid(cities[a]))