From: Soeren Apel Date: Fri, 10 Aug 2018 21:31:49 +0000 (+0200) Subject: MainBar: Disable custom samplerate by default X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=220801e96260f1f2a7bc23282ddf69955be91799;p=pulseview.git MainBar: Disable custom samplerate by default Without this, the edit may be left in editable mode once the external clock was enabled and disabled again. --- diff --git a/pv/toolbars/mainbar.cpp b/pv/toolbars/mainbar.cpp index b9eda077..d78a153f 100644 --- a/pv/toolbars/mainbar.cpp +++ b/pv/toolbars/mainbar.cpp @@ -302,6 +302,7 @@ void MainBar::update_sample_rate_selector() const shared_ptr sr_dev = device->device(); + sample_rate_.allow_user_entered_values(false); if (sr_dev->config_check(ConfigKey::EXTERNAL_CLOCK, Capability::GET)) { try { auto gvar = sr_dev->config_get(ConfigKey::EXTERNAL_CLOCK);