summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/rekonqpage/newtabpage.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/rekonqpage/newtabpage.cpp b/src/rekonqpage/newtabpage.cpp
index 46220514..aded6f06 100644
--- a/src/rekonqpage/newtabpage.cpp
+++ b/src/rekonqpage/newtabpage.cpp
@@ -935,8 +935,8 @@ void NewTabPage::createBookmarkGroup(const KBookmark &bookmark, QWebElement pare
void NewTabPage::createBookmarkItem(const KBookmark &bookmark, QWebElement parent)
{
QString cacheDir = QL1S("file://") + KStandardDirs::locateLocal("cache" , "" , true);
- QString icon = QL1S("file://") + KGlobal::dirs()->findResource("icon", "oxygen/16x16/mimetypes/text-html.png");
-
+ QString icon;
+
if (bookmark.isGroup())
{
createBookmarkGroup(bookmark, m_root);
@@ -952,7 +952,9 @@ void NewTabPage::createBookmarkItem(const KBookmark &bookmark, QWebElement paren
QString b = bookmark.icon();
if (b.contains(QL1S("favicons")))
icon = cacheDir + bookmark.icon() + QL1S(".png");
-
+ else
+ icon = IconManager::self()->iconPathForUrl(bookmark.url());
+
parent.appendInside(markup(QL1S("a")));
QWebElement bookmarkElement = parent.lastChild();
bookmarkElement.setAttribute(QL1S("href") , bookmark.url().prettyUrl());