From: Soeren Apel Date: Fri, 2 Sep 2016 17:59:33 +0000 (+0200) Subject: Session: Fix signal mappings for the views X-Git-Tag: pulseview-0.4.0~251 X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=53e8927dc930f88950027b159878f8d4ada7251e Session: Fix signal mappings for the views --- diff --git a/pv/session.cpp b/pv/session.cpp index 410a0b3d..fc4a748c 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -477,6 +477,8 @@ void Session::register_view(std::shared_ptr view) } views_.push_back(view); + + update_signals(); } void Session::deregister_view(std::shared_ptr view) @@ -668,6 +670,7 @@ void Session::update_signals() if (iter != prev_sigs.end()) { // Copy the signal from the old set to the new signal = *iter; + view->add_signal(signal); } else { // Find the signalbase for this channel if possible signalbase.reset();