decoder_selector: Auto-place the keyboard cursor in the filter.
authorUwe Hermann <uwe@hermann-uwe.de>
Sat, 29 Jun 2019 18:59:32 +0000 (20:59 +0200)
committerUwe Hermann <uwe@hermann-uwe.de>
Sat, 29 Jun 2019 20:59:30 +0000 (22:59 +0200)
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