X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Flogicsignal.cpp;h=e33c197a7be7ce31696c0465b82dd9cd4794f5c3;hp=b3901363548cff82686412fe070bad4f60c2d254;hb=388cdd24f49e31203a01e38bf5ae97e7272f6396;hpb=e0e560a5b61ce41b1907d699911cae86a793d5d7 diff --git a/pv/view/logicsignal.cpp b/pv/view/logicsignal.cpp index b3901363..e33c197a 100644 --- a/pv/view/logicsignal.cpp +++ b/pv/view/logicsignal.cpp @@ -339,9 +339,11 @@ void LogicSignal::populate_popup_form(QWidget *parent, QFormLayout *form) Glib::VariantBase::cast_dynamic>>( gvar).get(); for (auto type_id : trig_types) { - auto type = TriggerMatchType::get(type_id); - trigger_bar_->addAction(match_action(type)); - match_action(type)->setChecked(trigger_match_ == type); + const TriggerMatchType *const type = + TriggerMatchType::get(type_id); + QAction *const action = match_action(type); + trigger_bar_->addAction(action); + action->setChecked(trigger_match_ == type); } form->addRow(tr("Trigger"), trigger_bar_);