Changing devices now forces an update of the view's signal handling.
This will allow clearing the view properly in-between devices.
if (device_)
device_->close();
+ device_.reset();
+
+ // Remove all traces
+ signals_.clear();
+ decode_traces_.clear();
+ signals_changed();
+
device_ = std::move(device);
device_->open();
device_->session()->add_datafeed_callback([=]
data_feed_in(device, packet);
});
- decode_traces_.clear();
-
update_signals();
device_selected();
}