* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
+#include <cassert>
+
#include <libsigrokdecode/libsigrokdecode.h>
#include "decodermenu.h"
const srd_decoder *const d = (srd_decoder*)l->data;
assert(d);
- if (!first_level_decoder || d->probes || d->opt_probes) {
+ const bool have_channels = (d->channels || d->opt_channels) != 0;
+ if (first_level_decoder == have_channels) {
QAction *const action =
addAction(QString::fromUtf8(d->name));
action->setData(qVariantFromValue(l->data));