aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;
}