From 359fed124bd07c05de8586274f931ea74f1a2c76 Mon Sep 17 00:00:00 2001 From: megabigbug Date: Mon, 26 Oct 2009 19:27:56 +0100 Subject: fix arrow icon in the url bar --- src/urlbar.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/urlbar.cpp') diff --git a/src/urlbar.cpp b/src/urlbar.cpp index 5850f4e4..b6340fe7 100644 --- a/src/urlbar.cpp +++ b/src/urlbar.cpp @@ -161,14 +161,18 @@ void UrlBar::slotUpdateUrl() kDebug() << "Don't change my typed url..."; return; } - + + KIcon icon; + if(m_currentUrl.isEmpty()) icon = KIcon("arrow-right"); + else icon = Application::icon(m_currentUrl); + if (count()) { - changeUrl(0, Application::icon(m_currentUrl), m_currentUrl); + changeUrl(0, icon, m_currentUrl); } else { - insertUrl(0, Application::icon(m_currentUrl), m_currentUrl); + insertUrl(0, icon, m_currentUrl); } setCurrentIndex(0); -- cgit v1.2.1