From: Uwe Hermann Date: Sat, 29 Jun 2019 18:59:32 +0000 (+0200) Subject: decoder_selector: Auto-place the keyboard cursor in the filter. X-Git-Url: http://sigrok.org/gitweb/?p=pulseview.git;a=commitdiff_plain;h=39cc336ab844ad56cdccdbd7a82a587d1b28645b decoder_selector: Auto-place the keyboard cursor in the filter. --- diff --git a/pv/subwindows/decoder_selector/subwindow.cpp b/pv/subwindows/decoder_selector/subwindow.cpp index 19632ad1..fb354ffd 100644 --- a/pv/subwindows/decoder_selector/subwindow.cpp +++ b/pv/subwindows/decoder_selector/subwindow.cpp @@ -147,6 +147,9 @@ SubWindow::SubWindow(Session& session, QWidget* parent) : connect(this, SIGNAL(new_decoders_selected(vector)), &session, SLOT(on_new_decoders_selected(vector))); + + // Place the keyboard cursor in the filter QLineEdit initially + filter->setFocus(); } bool SubWindow::has_toolbar() const