aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
authorMike Skec <skec@protonmail.ch>2021-01-02 21:59:43 +1100
committerFelix Queißner <felix@ib-queissner.de>2021-01-02 12:41:49 +0100
commitba7f39e9f0f329e78710c67e1267c1fbc79ac428 (patch)
treea2eafc3436de2b6b9907964affc3f3e458c19f7f /src/mainwindow.cpp
parent7a738b241812ad3025868964b3a74c6135f838f3 (diff)
downloadkristall-ba7f39e9f0f329e78710c67e1267c1fbc79ac428.tar.gz
Tweak when url should be focused
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp5
1 files changed, 1 insertions, 4 deletions
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;
}