From be110d2d8f2cf25a43a3cae93858a3ff68d0d8ae Mon Sep 17 00:00:00 2001 From: David Rosca Date: Thu, 25 Feb 2016 18:47:46 +0100 Subject: [PATCH] Don't focus locationbar of non-empty tab when restoring session --- src/lib/app/browserwindow.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/app/browserwindow.cpp b/src/lib/app/browserwindow.cpp index 8a75acb33..e7ea30db9 100644 --- a/src/lib/app/browserwindow.cpp +++ b/src/lib/app/browserwindow.cpp @@ -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();