projects
/
pulseview.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
.gitignore: Added new Qt compiler intermediate
[pulseview.git]
/
pv
/
widgets
/
decodermenu.cpp
diff --git
a/pv/widgets/decodermenu.cpp
b/pv/widgets/decodermenu.cpp
index 23c74a0ac70abe3f1e25db3e871b9a5291349fdf..2f828a203604ab039608419ac957add1c8ef3cf8 100644
(file)
--- a/
pv/widgets/decodermenu.cpp
+++ b/
pv/widgets/decodermenu.cpp
@@
-36,7
+36,8
@@
DecoderMenu::DecoderMenu(QWidget *parent, bool first_level_decoder) :
const srd_decoder *const d = (srd_decoder*)l->data;
assert(d);
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));
QAction *const action =
addAction(QString::fromUtf8(d->name));
action->setData(qVariantFromValue(l->data));