]> sigrok.org Git - pulseview.git/commitdiff
Session: Fix signal mappings for the views
authorSoeren Apel <redacted>
Fri, 2 Sep 2016 17:59:33 +0000 (19:59 +0200)
committerSoeren Apel <redacted>
Fri, 2 Sep 2016 17:59:33 +0000 (19:59 +0200)
pv/session.cpp

index 410a0b3d8be9b4235babbd0d4f0919154466ae9b..fc4a748c09980c60b10a937b836a6632324c74bd 100644 (file)
@@ -477,6 +477,8 @@ void Session::register_view(std::shared_ptr<pv::view::View> view)
        }
 
        views_.push_back(view);
+
+       update_signals();
 }
 
 void Session::deregister_view(std::shared_ptr<pv::view::View> 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();