]> sigrok.org Git - pulseview.git/commitdiff
LogicSignal: Tidied populate_popup_form is_checked
authorPeter Zotov <redacted>
Thu, 13 Nov 2014 12:07:49 +0000 (12:07 +0000)
committerUwe Hermann <redacted>
Thu, 13 Nov 2014 18:34:38 +0000 (19:34 +0100)
pv/view/logicsignal.cpp

index 262434d1d845793b2e02d70fd923773be068d9cd..7541bd1375aa90908d903ed9e3277e7b500d5614 100644 (file)
@@ -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);