From: Stefan BrĂ¼ns Date: Fri, 27 Nov 2015 00:20:13 +0000 (+0100) Subject: session: make sure signals set is initialized X-Git-Tag: pulseview-0.3.0~32 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=a3f678a7cad210fe796f4a76370996a1284da6d4;p=pulseview.git session: make sure signals set is initialized This fixes parts of bug #387. --- diff --git a/pv/session.cpp b/pv/session.cpp index ef1159ee..0ac5bb72 100644 --- a/pv/session.cpp +++ b/pv/session.cpp @@ -579,6 +579,10 @@ void Session::feed_in_analog(shared_ptr analog) const float *data = static_cast(analog->data_pointer()); bool sweep_beginning = false; + if (signals_.empty()) { + update_signals(); + } + for (auto channel : channels) { shared_ptr segment;