]> sigrok.org Git - pulseview.git/blobdiff - pv/subwindows/decoder_selector/subwindow.cpp
decoder_selector: Auto-place the keyboard cursor in the filter.
[pulseview.git] / pv / subwindows / decoder_selector / subwindow.cpp
index 19632ad17a05051b22f63e649923d98d0b34f484..fb354ffd966e191c361d9307f031e13c8a9649ed 100644 (file)
@@ -147,6 +147,9 @@ SubWindow::SubWindow(Session& session, QWidget* parent) :
 
        connect(this, SIGNAL(new_decoders_selected(vector<const srd_decoder*>)),
                &session, SLOT(on_new_decoders_selected(vector<const srd_decoder*>)));
+
+       // Place the keyboard cursor in the filter QLineEdit initially
+       filter->setFocus();
 }
 
 bool SubWindow::has_toolbar() const