]> sigrok.org Git - pulseview.git/commitdiff
MainBar: Disable custom samplerate by default
authorSoeren Apel <redacted>
Fri, 10 Aug 2018 21:31:49 +0000 (23:31 +0200)
committerUwe Hermann <redacted>
Tue, 21 Aug 2018 10:02:38 +0000 (12:02 +0200)
Without this, the edit may be left in editable mode once the
external clock was enabled and disabled again.

pv/toolbars/mainbar.cpp

index b9eda07787c912ccdef99e7fa55d38fc3aa1d0a2..d78a153f160d0f14e45969572cfe671269ba07f0 100644 (file)
@@ -302,6 +302,7 @@ void MainBar::update_sample_rate_selector()
 
        const shared_ptr<sigrok::Device> 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);