From: Soeren Apel Date: Sun, 21 Apr 2019 06:44:10 +0000 (+0200) Subject: Fix #1375 by searching across all model columns X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=b032da6260e46cd7f9ff998da21d687e7d54cf9d;p=pulseview.git Fix #1375 by searching across all model columns This way, a search for "i2c" includes the ID field, not just the name. --- diff --git a/pv/subwindows/decoder_selector/subwindow.cpp b/pv/subwindows/decoder_selector/subwindow.cpp index af6de2d9..19632ad1 100644 --- a/pv/subwindows/decoder_selector/subwindow.cpp +++ b/pv/subwindows/decoder_selector/subwindow.cpp @@ -102,6 +102,7 @@ SubWindow::SubWindow(Session& session, QWidget* parent) : sort_filter_model_->setSourceModel(model_); sort_filter_model_->setFilterCaseSensitivity(Qt::CaseInsensitive); + sort_filter_model_->setFilterKeyColumn(-1); tree_view_->setModel(sort_filter_model_); tree_view_->setRootIsDecorated(true);