projects
/
pulseview.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ece37fe
)
LogicSignal: Tidied populate_popup_form is_checked
author
Peter Zotov
<whitequark@whitequark.org>
Thu, 13 Nov 2014 12:07:49 +0000
(12:07 +0000)
committer
Uwe Hermann
<uwe@hermann-uwe.de>
Thu, 13 Nov 2014 18:34:38 +0000
(19:34 +0100)
pv/view/logicsignal.cpp
patch
|
blob
|
history
diff --git
a/pv/view/logicsignal.cpp
b/pv/view/logicsignal.cpp
index 262434d1d845793b2e02d70fd923773be068d9cd..7541bd1375aa90908d903ed9e3277e7b500d5614 100644
(file)
--- a/
pv/view/logicsignal.cpp
+++ b/
pv/view/logicsignal.cpp
@@
-301,7
+301,6
@@
void LogicSignal::populate_popup_form(QWidget *parent, QFormLayout *form)
{
Glib::VariantContainerBase gvar;
vector<int32_t> trig_types;
- bool is_checked;
Signal::populate_popup_form(parent, form);
@@
-320,8
+319,7
@@
void LogicSignal::populate_popup_form(QWidget *parent, QFormLayout *form)
for (auto type_id : trig_types) {
auto type = TriggerMatchType::get(type_id);
_trigger_bar->addAction(match_action(type));
- is_checked = _trigger_match == type;
- match_action(type)->setChecked(is_checked);
+ match_action(type)->setChecked(_trigger_match == type);
}
form->addRow(tr("Trigger"), _trigger_bar);