From 708e029be1c2d790aa6891841f5425d8671e0bf3 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Sat, 17 Apr 2010 23:22:48 +0200 Subject: Fix the completition widget opening when the urlbar has the focus and we want to load an url It fix also the same issue with redirection --- src/urlbar/urlbar.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp index a4c7a0e0..8c6c0749 100644 --- a/src/urlbar/urlbar.cpp +++ b/src/urlbar/urlbar.cpp @@ -95,6 +95,7 @@ void UrlBar::setQUrl(const QUrl& url) } else { + clearFocus(); LineEdit::setUrl(url); setCursorPosition(0); iconButton()->setIcon( Application::icon(url) ); -- cgit v1.2.1 From 67f95af6b1649cd07ac2e3ba5a09ef1b7b875574 Mon Sep 17 00:00:00 2001 From: Yoann Laissus Date: Sat, 17 Apr 2010 23:33:31 +0200 Subject: Fix the url bar focus when the only tab is closed --- src/mainview.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/mainview.cpp b/src/mainview.cpp index a5eaa748..cb2e3b11 100644 --- a/src/mainview.cpp +++ b/src/mainview.cpp @@ -467,7 +467,7 @@ void MainView::closeTab(int index) case 0: // new tab page case 1: // blank page w->load( KUrl("about:home") ); - urlBarWidget()->setFocus(); + urlBar()->setFocus(); break; case 2: // homepage w->load( KUrl(ReKonfig::homePage()) ); -- cgit v1.2.1