From: Martin Ling Date: Tue, 14 Jan 2014 20:17:50 +0000 (+0000) Subject: Commit sample count after setting default. X-Git-Tag: pulseview-0.2.0~126 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=07f82b73077f28b68f86bb3f0fefd8384fa78aed;p=pulseview.git Commit sample count after setting default. --- diff --git a/pv/toolbars/samplingbar.cpp b/pv/toolbars/samplingbar.cpp index 9e16c511..6109c163 100644 --- a/pv/toolbars/samplingbar.cpp +++ b/pv/toolbars/samplingbar.cpp @@ -285,8 +285,10 @@ void SamplingBar::on_device_selected() update_sample_count_selector(); update_sample_rate_selector(); - if (_sample_count.value() == 0) + if (_sample_count.value() == 0) { _sample_count.set_value(DefaultRecordLength); + commit_sample_count(); + } } void SamplingBar::on_sample_count_changed()