X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;ds=sidebyside;f=pv%2Fviews%2Fdecoder_binary%2Fview.cpp;h=94e9cc673004e75e52195e79a3f980a7af6f37dd;hb=f95b1d810934308db9a0d71743f8462c16b79a0c;hp=5f55b19104d9449e12fc4556861c7546f04be46c;hpb=121307b3c50d981638cbe1e33ba5410bb2b11dd1;p=pulseview.git diff --git a/pv/views/decoder_binary/view.cpp b/pv/views/decoder_binary/view.cpp index 5f55b191..94e9cc67 100644 --- a/pv/views/decoder_binary/view.cpp +++ b/pv/views/decoder_binary/view.cpp @@ -206,14 +206,14 @@ void View::remove_decode_signal(shared_ptr signal) void View::save_settings(QSettings &settings) const { - (void)settings; + ViewBase::save_settings(settings); } void View::restore_settings(QSettings &settings) { // Note: It is assumed that this function is only called once, // immediately after restoring a previous session. - (void)settings; + ViewBase::restore_settings(settings); } void View::reset_data() @@ -371,8 +371,9 @@ void View::on_selected_class_changed(int index) { bin_class_id_ = class_selector_->itemData(index).value(); - binary_data_exists_ = - signal_->get_binary_data_chunk_count(current_segment_, decoder_, bin_class_id_); + binary_data_exists_ = (signal_) ? + signal_->get_binary_data_chunk_count(current_segment_, decoder_, bin_class_id_) : + false; update_data(); }