QToolBar("Sampling Bar", parent),
_session(session),
_device_selector(this),
+ _updating_device_selector(false),
_configure_button(this),
_probes_button(this),
_record_length_selector(this),
void SamplingBar::set_device_list(
const std::list<struct sr_dev_inst*> &devices)
{
+ _updating_device_selector = true;
+
_device_selector.clear();
BOOST_FOREACH (sr_dev_inst *sdi, devices) {
qVariantFromValue((void*)sdi));
}
+ _updating_device_selector = false;
+
update_sample_rate_selector();
}
{
using namespace pv::popups;
+ if (_updating_device_selector)
+ return;
+
update_sample_rate_selector();
sr_dev_inst *const sdi = get_selected_device();
SigSession &_session;
QComboBox _device_selector;
+ bool _updating_device_selector;
pv::widgets::PopupToolButton _configure_button;
pv::widgets::PopupToolButton _probes_button;