X-Git-Url: https://sigrok.org/gitweb/?p=pulseview.git;a=blobdiff_plain;f=pv%2Fsubwindows%2Fdecoder_selector%2Fsubwindow.cpp;h=5665a3227c806373f5c31a58eca2519e974d86fe;hp=fb354ffd966e191c361d9307f031e13c8a9649ed;hb=8c9e323b6cdafad9c031b8ea27cd1dcf33c00496;hpb=39cc336ab844ad56cdccdbd7a82a587d1b28645b diff --git a/pv/subwindows/decoder_selector/subwindow.cpp b/pv/subwindows/decoder_selector/subwindow.cpp index fb354ffd..5665a322 100644 --- a/pv/subwindows/decoder_selector/subwindow.cpp +++ b/pv/subwindows/decoder_selector/subwindow.cpp @@ -304,6 +304,9 @@ void SubWindow::on_item_activated(const QModelIndex& index) void SubWindow::on_filter_changed(const QString& text) { sort_filter_model_->setFilterFixedString(text); + + // Expand the "All Decoders" category/tag if the user filtered + tree_view_->setExpanded(tree_view_->model()->index(0, 0), !text.isEmpty()); } } // namespace decoder_selector