for (auto& entry : device->channel_groups()) {
const shared_ptr<ChannelGroup> group = entry.second;
- try {
- QLabel* label = group_label_map_.at(group);
+ if (group_label_map_.count(group) > 0) {
+ QLabel* label = group_label_map_[group];
label->setText(QString("<h3>%1</h3>").arg(group->name().c_str()));
- } catch (out_of_range&) {
- // Do nothing
}
}
bool updating_channels_;
vector< shared_ptr<pv::binding::Device> > group_bindings_;
- map< QCheckBox*, shared_ptr<pv::data::SignalBase> >
- check_box_signal_map_;
+ map< QCheckBox*, shared_ptr<pv::data::SignalBase> > check_box_signal_map_;
map< shared_ptr<sigrok::ChannelGroup>, QLabel*> group_label_map_;
QGridLayout filter_buttons_bar_;