Ignore location change signals without an actual fix
authorPhilipp Zabel <philipp.zabel@gmail.com>
Mon, 26 Apr 2010 19:18:08 +0000 (21:18 +0200)
committerPhilipp Zabel <philipp.zabel@gmail.com>
Tue, 27 Apr 2010 16:59:13 +0000 (18:59 +0200)
src/query-window.vala

index 1b4a1d7..1730193 100644 (file)
@@ -179,7 +179,7 @@ public class QueryWindow : StackableWindow {
        }
 
        void on_location_changed () requires (device.fix != null) {
-               if (!want_location)
+               if (!want_location || device.status == Location.GPSDeviceStatus.NO_FIX)
                        return;
 
                if (Location.GPS_DEVICE_LATLONG_SET in (int) device.fix.fields) {