From b1eca8095e59d92fa10aabc5dc423c125ff108ca Mon Sep 17 00:00:00 2001 From: nowrep Date: Thu, 28 Feb 2013 19:38:12 +0100 Subject: [PATCH] Select line in locationbar when opening new tabs only when text is empty. Fixes followup to #752 --- src/lib/webview/tabwidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/webview/tabwidget.cpp b/src/lib/webview/tabwidget.cpp index 97a17e79c..76fd49612 100644 --- a/src/lib/webview/tabwidget.cpp +++ b/src/lib/webview/tabwidget.cpp @@ -339,7 +339,7 @@ int TabWidget::addView(QNetworkRequest req, const QString &title, const Qz::NewT webView->load(req); } - if (selectLine) { + if (selectLine && p_QupZilla->locationBar()->text().isEmpty()) { p_QupZilla->locationBar()->setFocus(); }