dff7f4175176c45f70a89f5a6d567bc69b9052f8 braney Wed Jul 16 15:53:44 2014 -0700 unlisted hubs are not listed if they aren't connected diff --git src/hg/hgHubConnect/hgHubConnect.c src/hg/hgHubConnect/hgHubConnect.c index 52c0822..37af3ca 100644 --- src/hg/hgHubConnect/hgHubConnect.c +++ src/hg/hgHubConnect/hgHubConnect.c @@ -191,40 +191,42 @@ printf( " " "Display " "Hub Name " "Description " "Assemblies " "\n" "\n"); // start first row printf(""); int count = 0; for(hub = unlistedHubList; hub; hub = hub->next) { + char hubName[64]; + safef(hubName, sizeof(hubName), "%s%u", hgHubConnectHubVarPrefix, hub->id); + if (!cartUsualBoolean(cart, hubName, FALSE)) + continue; + if (count) webPrintLinkTableNewRow(); // ends last row and starts a new one count++; puts(""); ourCellStart(); - char hubName[32]; - safef(hubName, sizeof(hubName), "%s%u", hgHubConnectHubVarPrefix, hub->id); - if (cartUsualBoolean(cart, hubName, FALSE)) printf("\n", hub->id); ourCellEnd(); if (hub->trackHub != NULL) { ourPrintCellLink(hub->trackHub->shortLabel, hub->hubUrl); } else ourPrintCell(""); if (!isEmpty(hub->errorMessage))