]> sigrok.org Git - pulseview.git/commitdiff
MainBar: Don't list keys twice
authorJoel Holdsworth <redacted>
Sat, 17 Jan 2015 15:04:17 +0000 (15:04 +0000)
committerUwe Hermann <redacted>
Tue, 27 Jan 2015 15:28:30 +0000 (16:28 +0100)
pv/toolbars/mainbar.cpp

index 67cfa4c64d2dbdad9d221614c5da868d4a1a56b8..acab199da8853dbd075c1665a3dabdbb8a4fe5ab 100644 (file)
@@ -215,8 +215,6 @@ void MainBar::update_sample_rate_selector()
        const auto iter = keys.find(ConfigKey::SAMPLERATE);
        if (iter != keys.end() &&
                (*iter).second.find(sigrok::LIST) != (*iter).second.end()) {
-               const auto keys = device->config_keys(
-                       ConfigKey::DEVICE_OPTIONS);
                try {
                        gvar_dict = device->config_list(ConfigKey::SAMPLERATE);
                } catch(const sigrok::Error &e) {