aboutsummaryrefslogtreecommitdiff
path: root/src/mainwindow.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainwindow.cpp')
-rw-r--r--src/mainwindow.cpp3
1 files changed, 1 insertions, 2 deletions
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;
}