1
mirror of https://invent.kde.org/network/falkon.git synced 2024-09-21 17:52:10 +02: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();
// Update focus
if (locationBar()->text().isEmpty())
if (LocationBar::convertUrlToText(weView()->webTab()->url()).isEmpty())
locationBar()->setFocus();
else
weView()->setFocus();