]> sigrok.org Git - pulseview.git/commitdiff
Commit sample count after setting default.
authorMartin Ling <redacted>
Tue, 14 Jan 2014 20:17:50 +0000 (20:17 +0000)
committerJoel Holdsworth <redacted>
Sat, 18 Jan 2014 22:56:12 +0000 (22:56 +0000)
pv/toolbars/samplingbar.cpp

index 9e16c5119384f208f12f7760cb2c06dcca373d04..6109c163ef4b11ecd6d8fdcc873618e44dc17a66 100644 (file)
@@ -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()