Skip to content

Commit

Permalink
ui: Focus search box when a new tab is opened (fixes #725)
Browse files Browse the repository at this point in the history
  • Loading branch information
trollixx committed Jul 6, 2017
1 parent c6003e1 commit 57c9edd
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/ui/mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 57c9edd

Please sign in to comment.