X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fview%2Flogicsignal.cpp;h=6fda499b47d1ac551431f41c48c67e983bf754c0;hp=7541bd1375aa90908d903ed9e3277e7b500d5614;hb=1f4caa772cd691da7578816bf3744496c9cde1cf;hpb=7c4b01a19188234695a05f5d2ed2be290eca5cba diff --git a/pv/view/logicsignal.cpp b/pv/view/logicsignal.cpp index 7541bd13..6fda499b 100644 --- a/pv/view/logicsignal.cpp +++ b/pv/view/logicsignal.cpp @@ -72,10 +72,12 @@ const QColor LogicSignal::SignalColours[10] = { QColor(0xEE, 0xEE, 0xEC), // White }; -LogicSignal::LogicSignal(shared_ptr device, - shared_ptr channel, - shared_ptr data) : - Signal(channel), +LogicSignal::LogicSignal( + pv::SigSession &session, + shared_ptr device, + shared_ptr channel, + shared_ptr data) : + Signal(session, channel), _device(device), _data(data), _trigger_none(NULL), @@ -92,7 +94,7 @@ LogicSignal::LogicSignal(shared_ptr device, /* Populate this channel's trigger setting with whatever we * find in the current session trigger, if anything. */ _trigger_match = nullptr; - if ((trigger = SigSession::_sr_session->trigger())) + if ((trigger = _session.session()->trigger())) for (auto stage : trigger->stages()) for (auto match : stage->matches()) if (match->channel() == _channel) @@ -329,10 +331,10 @@ void LogicSignal::on_trigger() { QAction *action; - match_action(_trigger_match)->setChecked(FALSE); + match_action(_trigger_match)->setChecked(false); action = (QAction *)sender(); - action->setChecked(TRUE); + action->setChecked(true); _trigger_match = action_match(action); }