menu_cb_enable_gps(GtkAction * action)
{
if ((_enable_gps = gtk_toggle_action_get_active(GTK_TOGGLE_ACTION(action)))) {
+ if (_gps->io.address) {
gps_conn_set_state(_gps, RCVR_DOWN);
- if (gps_connect_now(_gps)==FALSE) {
- popup_error(_window, _("Cannot enable GPS until a GPS Receiver MAC is set in the Settings dialog box."));
+ gps_connect_now(_gps);
+ } else {
+ popup_error(_window, _("Cannot enable GPS until a GPS Receiver has been configured in the GPS Settings dialog."));
set_action_activate("gps_enabled", FALSE);
}
} else {