1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-01 21:54:55 -04:00

API: added index in FeatureSet structure

This commit is contained in:
f4exb
2021-09-16 21:20:03 +02:00
parent 611171234a
commit e8ed80167c
7 changed files with 50 additions and 4 deletions
+1
View File
@@ -3767,6 +3767,7 @@ void WebAPIAdapter::getFeatureSet(SWGSDRangel::SWGFeatureSet *swgFeatureSet, con
(void) featureSetIndex; // FIXME: the index should be present in the API FeatureSet structure
swgFeatureSet->init();
swgFeatureSet->setFeaturecount(featureSet->getNumberOfFeatures());
swgFeatureSet->setIndex(featureSetIndex);
QList<SWGSDRangel::SWGFeature*> *features = swgFeatureSet->getFeatures();
for (int i = 0; i < featureSet->getNumberOfFeatures(); i++)