From: Uwe Hermann Date: Sat, 29 Jun 2019 20:58:13 +0000 (+0200) Subject: decoder_selector: Expand "All Decoders" if the user filtered X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=8c9e323b6cdafad9c031b8ea27cd1dcf33c00496;p=pulseview.git decoder_selector: Expand "All Decoders" if the user filtered --- 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