projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32d83ce
)
Don't show decoders with probes in the Stack Decoder menu
author
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 15 Mar 2014 07:58:58 +0000
(08:58 +0100)
committer
Joel Holdsworth
<joel@airwebreathe.org.uk>
Sat, 15 Mar 2014 07:59:04 +0000
(08:59 +0100)
This fixes #333
pv/widgets/decodermenu.cpp
patch
|
blob
|
history
diff --git
a/pv/widgets/decodermenu.cpp
b/pv/widgets/decodermenu.cpp
index 23c74a0ac70abe3f1e25db3e871b9a5291349fdf..ff687e4cb85a6d279d5a532b73c9ba35cebbb92d 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);
- if (!first_level_decoder || d->probes || d->opt_probes) {
+ const bool have_probes = (d->probes || d->opt_probes) != 0;
+ if (first_level_decoder == have_probes) {
QAction *const action =
addAction(QString::fromUtf8(d->name));
action->setData(qVariantFromValue(l->data));