From: Joel Holdsworth Date: Sat, 17 Jan 2015 15:04:17 +0000 (+0000) Subject: MainBar: Don't list keys twice X-Git-Tag: pulseview-0.3.0~257 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=3c35fcf0a15233dfd8042bc3063f7a4bb9d24256;p=pulseview.git MainBar: Don't list keys twice --- diff --git a/pv/toolbars/mainbar.cpp b/pv/toolbars/mainbar.cpp index 67cfa4c6..acab199d 100644 --- a/pv/toolbars/mainbar.cpp +++ b/pv/toolbars/mainbar.cpp @@ -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) {