Add missing #include <cassert> in multiple files
[pulseview.git] / pv / widgets / decodermenu.cpp
index ff687e4cb85a6d279d5a532b73c9ba35cebbb92d..b90c86d7403e3df7bc7e2848d84d2579bbd74126 100644 (file)
@@ -18,6 +18,8 @@
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301 USA
  */
 
+#include <cassert>
+
 #include <libsigrokdecode/libsigrokdecode.h>
 
 #include "decodermenu.h"
@@ -36,7 +38,7 @@ 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;
+               const bool have_probes = (d->channels || d->opt_channels) != 0;
                if (first_level_decoder == have_probes) {
                        QAction *const action =
                                addAction(QString::fromUtf8(d->name));