namespace pv {
Session::Session(DeviceManager &device_manager, QString name) :
device_manager_(device_manager),
+ default_name_(name),
name_(name),
capture_state_(Stopped),
cur_samplerate_(0)
device = std::make_shared<devices::SessionFile>(device_manager_.context(),
filename.toStdString());
set_device(device);
- set_name(filename);
// TODO Perform error handling
start_capture([](QString infoMessage) { (void)infoMessage; });
+
+ set_name(QFileInfo(filename).fileName());
}
}
}
views_.push_back(view);
+
+ update_signals();
}
void Session::deregister_view(std::shared_ptr<pv::view::View> view)
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();