summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrea Diamantini <adjam7@gmail.com>2010-09-11 23:58:44 +0200
committerAndrea Diamantini <adjam7@gmail.com>2010-09-11 23:58:44 +0200
commit8e5a1b435076c722aa1d956d26422915d66c226d (patch)
tree06ffacb938554274a35354abbd3f9d262aa96e36 /src
parentMerge commit 'refs/merge-requests/208' of git://gitorious.org/rekonq/mainline... (diff)
downloadrekonq-8e5a1b435076c722aa1d956d26422915d66c226d.tar.xz
Fix green arrow show up
Diffstat (limited to 'src')
-rw-r--r--src/iconmanager.cpp2
-rw-r--r--src/urlbar/urlbar.cpp8
2 files changed, 7 insertions, 3 deletions
diff --git a/src/iconmanager.cpp b/src/iconmanager.cpp
index 80f0d7fb..5086c59d 100644
--- a/src/iconmanager.cpp
+++ b/src/iconmanager.cpp
@@ -98,7 +98,7 @@ KIcon IconManager::iconForUrl(const KUrl &url)
return KIcon(faviconDir + i);
}
- kDebug() << "Icon NOT Found. returning text-html one";
+ kDebug() << "Icon NOT Found for url: " << url;
return KIcon("text-html");
}
diff --git a/src/urlbar/urlbar.cpp b/src/urlbar/urlbar.cpp
index c8aa43ff..d7f906f3 100644
--- a/src/urlbar/urlbar.cpp
+++ b/src/urlbar/urlbar.cpp
@@ -138,7 +138,6 @@ void UrlBar::setQUrl(const QUrl& url)
{
if (url.scheme() == QL1S("about"))
{
- _icon->setIcon(KIcon("arrow-right"));
clear();
setFocus();
}
@@ -503,5 +502,10 @@ void UrlBar::suggest()
void UrlBar::refreshFavicon()
{
- _icon->setIcon(Application::iconManager()->iconForUrl(_tab->view()->url()));
+ KUrl u = _tab->url();
+ if(u.scheme() == QL1S("about")) {
+ _icon->setIcon(KIcon("arrow-right"));
+ return;
+ }
+ _icon->setIcon(Application::iconManager()->iconForUrl(u));
}