From 7c4b01a19188234695a05f5d2ed2be290eca5cba Mon Sep 17 00:00:00 2001 From: Peter Zotov Date: Thu, 13 Nov 2014 12:07:49 +0000 Subject: [PATCH] LogicSignal: Tidied populate_popup_form is_checked --- pv/view/logicsignal.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); -- 2.30.2