X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Ftoolbars%2Fsamplingbar.cpp;h=7e052f81cf6c16e77d91307fc956097fff410711;hp=c35faadad49f5773a179810165bc8b5e8dda4013;hb=5ac961e325a9d2cbafdd8fae3a6704d7348cf19a;hpb=6374d2f8a360e9ca7670d437fc783f8086de1d08 diff --git a/pv/toolbars/samplingbar.cpp b/pv/toolbars/samplingbar.cpp index c35faada..7e052f81 100644 --- a/pv/toolbars/samplingbar.cpp +++ b/pv/toolbars/samplingbar.cpp @@ -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()), @@ -283,6 +283,7 @@ void SamplingBar::commit_sample_rate() void SamplingBar::on_device_selected() { update_sample_rate_selector(); + device_selected(); } void SamplingBar::on_sample_rate_changed() @@ -303,5 +304,11 @@ void SamplingBar::on_configure() update_sample_rate_selector_value(); } +void SamplingBar::on_run_stop() +{ + commit_sample_rate(); + run_stop(); +} + } // namespace toolbars } // namespace pv