1
mirror of https://invent.kde.org/network/falkon.git synced 2024-12-20 18:56:34 +01:00

BrowserWindow: Give focus to webview before loading url in loadAddress

BrowserWindow::loadAddress() always gets called from user interaction,
so it should always update text in location bar (it wouldn't be updated
if location bar is focused).
This commit is contained in:
David Rosca 2018-03-01 16:27:16 +01:00
parent 87ce04b11d
commit 18d009c325
No known key found for this signature in database
GPG Key ID: EBC3FC294452C6D8

View File

@ -809,8 +809,8 @@ void BrowserWindow::loadAddress(const QUrl &url)
int index = m_tabWidget->addView(url, qzSettings->newTabPosition); int index = m_tabWidget->addView(url, qzSettings->newTabPosition);
weView(index)->setFocus(); weView(index)->setFocus();
} else { } else {
weView()->load(url);
weView()->setFocus(); weView()->setFocus();
weView()->load(url);
} }
} }