From ba7f39e9f0f329e78710c67e1267c1fbc79ac428 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Sat, 2 Jan 2021 21:59:43 +1100 Subject: Tweak when url should be focused --- src/mainwindow.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/mainwindow.cpp') diff --git a/src/mainwindow.cpp b/src/mainwindow.cpp index 3315840..b2b7b15 100644 --- a/src/mainwindow.cpp +++ b/src/mainwindow.cpp @@ -112,14 +112,11 @@ BrowserTab * MainWindow::addEmptyTab(bool focus_new, bool load_default) if(load_default) { tab->navigateTo(QUrl(kristall::options.start_page), BrowserTab::PushImmediate); + tab->focusUrlBar(); } else { tab->navigateTo(QUrl("about:blank"), BrowserTab::DontPush); } - if(focus_new) { - tab->focusUrlBar(); - } - return tab; } -- cgit v1.2.3