4c4ae598f12f60f9281cb81b34f81d802beb0744 braney Mon Apr 22 11:25:53 2024 -0700 it turns out that initTrackList() gets called twice if a nextItem arrow is pressed. Probably there are other bugs because of this, but this fixes one of them. diff --git src/hg/lib/trackHub.c src/hg/lib/trackHub.c index 65b9b02..e55e2ca 100644 --- src/hg/lib/trackHub.c +++ src/hg/lib/trackHub.c @@ -1675,15 +1675,21 @@ FILE *f = mustOpen(filename, "a"); chmod(filename, 0666); walkTree(f, cart, tdb, visDy); fclose(f); return cloneString(filename); } struct grp *trackHubGetGrps() /* Get the groups defined by attached track hubs. */ { return trackHubGrps; } + +void trackHubResetGrps() +/* Reset to NULL the groups defined by attached track hubs. */ +{ +trackHubGrps = NULL; +}