]> err.no Git - mapper/commitdiff
Disable GPS if not retrying
authorKaj-Michael Lang <milang@onion.tal.org>
Sun, 4 Nov 2007 16:36:14 +0000 (18:36 +0200)
committerKaj-Michael Lang <milang@onion.tal.org>
Sun, 4 Nov 2007 16:36:14 +0000 (18:36 +0200)
src/bt-maemo.c

index 793b97bda5e5a1a0293df3697a8dadc18d8d82a3..c216a214604d5be06a0df23ab0000beb4ff5af48 100644 (file)
@@ -158,8 +158,11 @@ if (_conn_state == RCVR_DOWN && _rcvr_mac) {
 
                                if (GTK_RESPONSE_OK == gtk_dialog_run(GTK_DIALOG(confirm)))
                                        rcvr_connect_later();   /* Try again later. */
-                               else
+                               else {
                                        gps_conn_set_state(RCVR_OFF);
+                                       _enable_gps=FALSE;
+                                       set_action_activate("gps_enable", !_enable_gps);
+                               }
 
                                gtk_widget_destroy(confirm);
                                return;