X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fpopups%2Fchannels.cpp;fp=pv%2Fpopups%2Fchannels.cpp;h=ecdc59a35466cd82f378cd1393f5f366bb091ccf;hp=842a19d29305ba3db38de9a43f096ba22da45490;hb=c5a871570b79107260398936c3c335b26df2c26b;hpb=f5a26d5ea895f820c980326be6cee1d46cb958e3 diff --git a/pv/popups/channels.cpp b/pv/popups/channels.cpp index 842a19d2..ecdc59a3 100644 --- a/pv/popups/channels.cpp +++ b/pv/popups/channels.cpp @@ -333,11 +333,9 @@ void Channels::showEvent(QShowEvent *event) for (auto& entry : device->channel_groups()) { const shared_ptr 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("

%1

").arg(group->name().c_str())); - } catch (out_of_range&) { - // Do nothing } }