]> err.no Git - mapper/commitdiff
Set autocenter to none if GPS is disabled.
authorKaj-Michael Lang <milang@onion.tal.org>
Tue, 15 Jan 2008 12:43:18 +0000 (14:43 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Tue, 15 Jan 2008 12:43:18 +0000 (14:43 +0200)
src/cb.c

index ef9b27bdc81238373acf4159bd93d0db806b11cd..85aa881955639a827fa37839864bbb879f73beef 100644 (file)
--- a/src/cb.c
+++ b/src/cb.c
@@ -449,6 +449,8 @@ if ((_enable_gps = gtk_toggle_action_get_active(GTK_TOGGLE_ACTION(action)))) {
        track_add(0, FALSE);
        _speed_excess=FALSE;
 }
+if (_enable_gps==FALSE)
+       set_action_activate("autocenter_none", TRUE);
 set_action_sensitive("gps_details", _enable_gps);
 set_action_sensitive("goto_gps", _enable_gps);
 set_action_sensitive("autocenter_latlon", _enable_gps);