diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-01-01 21:01:06 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-01-01 15:02:42 +0100 |
| commit | 0c022e3464c7dedde4a1b1fd9e13dd5bc20056de (patch) | |
| tree | a0c972a81abd9ad83c9de7d4ee95b2e1ae1d413f /src/mainwindow.cpp | |
| parent | 19c8bf98885074617f9cc0a0b2f60ebf47ddf714 (diff) | |
| download | kristall-0c022e3464c7dedde4a1b1fd9e13dd5bc20056de.tar.gz | |
url bar focus change
when adding new tab the url bar is only focused if the tab is set as the focused tab
Diffstat (limited to 'src/mainwindow.cpp')
| -rw-r--r-- | src/mainwindow.cpp | 3 |
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; } |
