fix(cpn): inputs and mixes must have source (#5798)
This commit is contained in:
@@ -343,3 +343,19 @@ AbstractStaticItemModel * RadioData::modelSortOrderItemModel()
|
||||
mdl->loadItemList();
|
||||
return mdl;
|
||||
}
|
||||
|
||||
void RadioData::validateModels()
|
||||
{
|
||||
for(auto &model: models)
|
||||
model.validate();
|
||||
}
|
||||
|
||||
int RadioData::invalidModels()
|
||||
{
|
||||
int cnt = 0;
|
||||
|
||||
for(auto &model: models)
|
||||
cnt += model.isValid() ? 0 : 1;
|
||||
|
||||
return cnt;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user