From 0c022e3464c7dedde4a1b1fd9e13dd5bc20056de Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Fri, 1 Jan 2021 21:01:06 +1100 Subject: url bar focus change when adding new tab the url bar is only focused if the tab is set as the focused tab --- src/mainwindow.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index b30d98a..0649f44 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -109,6 +109,7 @@ BrowserTab * MainWindow::addEmptyTab(bool focus_new, bool load_default) if(focus_new) { this->ui->browser_tabs->setCurrentIndex(index); + tab->focusUrlBar(); } if(load_default) { @@ -117,8 +118,6 @@ BrowserTab * MainWindow::addEmptyTab(bool focus_new, bool load_default) tab->navigateTo(QUrl("about:blank"), BrowserTab::DontPush); } - tab->focusUrlBar(); - return tab; } -- cgit v1.2.3