summaryrefslogtreecommitdiff
path: root/src/urlbar.cpp
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2009-10-27 10:50:05 +0100
committerAndrea Diamantini <adjam7@gmail.com>2009-10-27 10:50:05 +0100
commit635c43828618d5dd8ea93ac264f8bcd648af5da1 (patch)
tree67dc5824b366d05c00b0d01132807a546aa140c8 /src/urlbar.cpp
parentfix scrollbar, cursor bugs. (diff)
parentfix arrow icon in the url bar (diff)
downloadrekonq-635c43828618d5dd8ea93ac264f8bcd648af5da1.tar.xz
Merge commit 'refs/merge-requests/1918' of git://gitorious.org/rekonq/mainline into Tue1918
Diffstat (limited to 'src/urlbar.cpp')
-rw-r--r--src/urlbar.cpp10
1 files changed, 7 insertions, 3 deletions
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);