From f0c94434b9f43cc1f65a4de9404af5173cf0fb92 Mon Sep 17 00:00:00 2001 From: Kaj-Michael Lang Date: Tue, 15 Jan 2008 14:43:18 +0200 Subject: [PATCH] Set autocenter to none if GPS is disabled. --- src/cb.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/cb.c b/src/cb.c index ef9b27b..85aa881 100644 --- 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); -- 2.39.5