X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=pv%2Fviews%2Ftabular_decoder%2Fmodel.cpp;h=b87bf05869ef1f118ad69853ff3899ec4e1d097a;hb=HEAD;hp=337f4ce9ae1d02d46ffba8dc903162d5d6a2d468;hpb=1804b9700b7ac1314e0e9b59555170a6d10108e0;p=pulseview.git diff --git a/pv/views/tabular_decoder/model.cpp b/pv/views/tabular_decoder/model.cpp index 337f4ce9..def753b2 100644 --- a/pv/views/tabular_decoder/model.cpp +++ b/pv/views/tabular_decoder/model.cpp @@ -228,8 +228,9 @@ void AnnotationCollectionModel::set_signal_and_segment(data::DecodeSignal* signa return; } - for (const shared_ptr& dec : signal_->decoder_stack()) - disconnect(dec.get(), nullptr, this, SLOT(on_annotation_visibility_changed())); + if (signal_) + for (const shared_ptr& dec : signal_->decoder_stack()) + disconnect(dec.get(), nullptr, this, SLOT(on_annotation_visibility_changed())); all_annotations_ = signal->get_all_annotations_by_segment(current_segment); signal_ = signal;