X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fwidgets%2Fdecodermenu.cpp;h=60eb8e8a576205a8ec480f2a6669fc43695cb82c;hp=ff687e4cb85a6d279d5a532b73c9ba35cebbb92d;hb=0715fb8c638b53ac25590841fcbf3a1da3546b68;hpb=76868203e56032aa21d7909b5fd72c50b5505615 diff --git a/pv/widgets/decodermenu.cpp b/pv/widgets/decodermenu.cpp index ff687e4c..60eb8e8a 100644 --- a/pv/widgets/decodermenu.cpp +++ b/pv/widgets/decodermenu.cpp @@ -18,6 +18,8 @@ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ +#include + #include #include "decodermenu.h" @@ -36,8 +38,8 @@ DecoderMenu::DecoderMenu(QWidget *parent, bool first_level_decoder) : const srd_decoder *const d = (srd_decoder*)l->data; assert(d); - const bool have_probes = (d->probes || d->opt_probes) != 0; - if (first_level_decoder == have_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));