const srd_decoder *const d = (srd_decoder*)l->data;
assert(d);
- if (!first_level_decoder || d->probes || d->opt_probes) {
+ const bool have_probes = (d->channels || d->opt_channels) != 0;
+ if (first_level_decoder == have_probes) {
QAction *const action =
addAction(QString::fromUtf8(d->name));
action->setData(qVariantFromValue(l->data));