1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00

Don't focus locationbar of non-empty tab when restoring session

This commit is contained in:
David Rosca 2016-02-25 18:47:46 +01:00
parent 6ebb9464b2
commit be110d2d8f

View File

@ -231,7 +231,7 @@ void BrowserWindow::postLaunch()
tabWidget()->tabBar()->ensureVisible(); tabWidget()->tabBar()->ensureVisible();
// Update focus // Update focus
if (locationBar()->text().isEmpty()) if (LocationBar::convertUrlToText(weView()->webTab()->url()).isEmpty())
locationBar()->setFocus(); locationBar()->setFocus();
else else
weView()->setFocus(); weView()->setFocus();