]> sigrok.org Git - pulseview.git/blobdiff - pv/toolbars/samplingbar.cpp
Commit the samplerate before beginning to sample
[pulseview.git] / pv / toolbars / samplingbar.cpp
index c35faadad49f5773a179810165bc8b5e8dda4013..401652cbe7b251eba52fe6bcd998cd2a98dd80d4 100644 (file)
@@ -72,7 +72,7 @@ SamplingBar::SamplingBar(QWidget *parent) :
        _run_stop_button(this)
 {
        connect(&_run_stop_button, SIGNAL(clicked()),
-               this, SIGNAL(run_stop()));
+               this, SLOT(on_run_stop()));
        connect(&_device_selector, SIGNAL(currentIndexChanged (int)),
                this, SLOT(on_device_selected()));
        connect(&_configure_button, SIGNAL(clicked()),
@@ -303,5 +303,11 @@ void SamplingBar::on_configure()
        update_sample_rate_selector_value();
 }
 
+void SamplingBar::on_run_stop()
+{
+       commit_sample_rate();   
+       run_stop();
+}
+
 } // namespace toolbars
 } // namespace pv