From: Joel Holdsworth Date: Sat, 1 Mar 2014 08:51:58 +0000 (+0000) Subject: SamplingBar: Surpressed a spurious update loop X-Git-Tag: pulseview-0.2.0~48 X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=faecaa172e6fbe87d1f0ccde04094b744ed4074d SamplingBar: Surpressed a spurious update loop --- diff --git a/pv/toolbars/samplingbar.cpp b/pv/toolbars/samplingbar.cpp index f58f4fc3..78f6e1ce 100644 --- a/pv/toolbars/samplingbar.cpp +++ b/pv/toolbars/samplingbar.cpp @@ -115,8 +115,6 @@ void SamplingBar::set_device_list( } _updating_device_selector = false; - - on_device_selected(); } shared_ptr SamplingBar::get_selected_device() const @@ -145,6 +143,8 @@ void SamplingBar::set_selected_device(shared_ptr dev_inst) for (int i = 0; i < _device_selector.count(); i++) if (dev_inst->dev_inst() == _device_selector.itemData(i).value()) { + // Calling this leads to on_device_selected being + // invoked, which updates the sampling bar widgets. _device_selector.setCurrentIndex(i); return; }