From: Peter Zotov Date: Thu, 13 Nov 2014 12:07:49 +0000 (+0000) Subject: LogicSignal: Tidied populate_popup_form is_checked X-Git-Tag: pulseview-0.3.0~516 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7c4b01a19188234695a05f5d2ed2be290eca5cba;p=pulseview.git LogicSignal: Tidied populate_popup_form is_checked --- diff --git a/pv/view/logicsignal.cpp b/pv/view/logicsignal.cpp index 262434d1..7541bd13 100644 --- 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 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);