speak_set_parameters(_voice_speed, _voice_pitch);
if (_db) {
+ poi_deinit(_db);
+ osm_deinit(_db);
db_close(&_db);
_db = NULL;
}
g_free(_mapper_db);
if (strlen(gtk_entry_get_text(GTK_ENTRY(txt_mapper_db)))) {
- _mapper_db = g_strdup(gtk_entry_get_text(GTK_ENTRY(txt_mapper_db)));
+ _mapper_db=g_strdup(gtk_entry_get_text(GTK_ENTRY(txt_mapper_db)));
db_connect(&_db, _mapper_db);
+ poi_init(&_db);
+ osm_init(&_db);
} else {
- _mapper_db = NULL;
+ _mapper_db=NULL;
}
/* Sensitize menus based on whether we have a database conn. */