Ignore location change signals without an actual fix
[beifahrer] / 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) {