From 24d954e7fd4b3a601f1175bd8fdf6d2184b1d3bf Mon Sep 17 00:00:00 2001 From: Matthieu Gicquel Date: Sat, 10 Oct 2009 14:10:57 +0200 Subject: clear urlbar when HomePage is shown --- src/urlbar.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/urlbar.cpp b/src/urlbar.cpp index 5776961b..5ad8314e 100644 --- a/src/urlbar.cpp +++ b/src/urlbar.cpp @@ -135,10 +135,12 @@ void UrlBar::setUrl(const QUrl& url) { if(url.scheme() == "rekonq") { + m_currentUrl = ""; setFocus(); - return; } - m_currentUrl = url; + else + m_currentUrl = url; + slotUpdateUrl(); } -- cgit v1.2.1 From 2a95521e3f6821e20247f1ad90871726550e8fd2 Mon Sep 17 00:00:00 2001 From: Matthieu Gicquel Date: Sat, 10 Oct 2009 14:46:47 +0200 Subject: KIcon("go-home") for homepage --- src/application.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/application.cpp b/src/application.cpp index e3c06a5b..b5d2d292 100644 --- a/src/application.cpp +++ b/src/application.cpp @@ -229,9 +229,16 @@ SessionManager *Application::sessionManager() KIcon Application::icon(const KUrl &url) { + if(url.scheme() == "rekonq" || + (url.isEmpty() // Urlbar is empty for homepage, but we want an icon + && !Application::instance()->mainWindowList().isEmpty() // avoid infinite loop at startup + && Application::instance()->mainWindow()->currentTab()->url().scheme() == "rekonq") + ) + return KIcon("go-home"); + if(url.isEmpty()) return KIcon("text-html"); - + KIcon icon = KIcon(QWebSettings::iconForUrl(url)); if (icon.isNull()) { -- cgit v1.2.1