From 57c9edd20c555823af0df473576ad180e4bde14c Mon Sep 17 00:00:00 2001 From: Oleg Shparber Date: Fri, 7 Jul 2017 00:35:47 +0300 Subject: [PATCH] ui: Focus search box when a new tab is opened (fixes #725) --- src/libs/ui/mainwindow.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/libs/ui/mainwindow.cpp b/src/libs/ui/mainwindow.cpp index 1f5f57d74..f53f86de0 100644 --- a/src/libs/ui/mainwindow.cpp +++ b/src/libs/ui/mainwindow.cpp @@ -529,6 +529,8 @@ void MainWindow::createTab(int index) m_tabStates.insert(index, newTab); m_tabBar->insertTab(index, tr("Loading...")); m_tabBar->setCurrentIndex(index); + + ui->lineEdit->setFocus(); } void MainWindow::duplicateTab(int index)