From: Soeren Apel Date: Tue, 14 Jul 2015 16:30:22 +0000 (+0200) Subject: MainBar: Re-check sample count/rate when needed X-Git-Tag: pulseview-0.3.0~171 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=e13e7879200700579516c0ba09bfd0253b8a2297;p=pulseview.git MainBar: Re-check sample count/rate when needed --- diff --git a/pv/toolbars/mainbar.cpp b/pv/toolbars/mainbar.cpp index 0bf22702..b404b3da 100644 --- a/pv/toolbars/mainbar.cpp +++ b/pv/toolbars/mainbar.cpp @@ -493,6 +493,11 @@ void MainBar::commit_sample_count() return; } } + + // Devices with built-in memory might impose limits on certain + // configurations, so let's check what sample rate the driver + // lets us use now. + update_sample_rate_selector(); } void MainBar::commit_sample_rate() @@ -518,6 +523,11 @@ void MainBar::commit_sample_rate() qDebug() << "Failed to configure samplerate."; return; } + + // Devices with built-in memory might impose limits on certain + // configurations, so let's check what sample count the driver + // lets us use now. + update_sample_count_selector(); } void MainBar::on_device_selected()