summaryrefslogtreecommitdiff
path: root/src/urlbar
diff options
context:
space:
mode:
authorYoann Laissus <yoann.laissus@gmail.com>2012-08-10 12:00:22 +0200
committerYoann Laissus <yoann.laissus@gmail.com>2012-08-10 12:00:22 +0200
commita2d92d6e7eb5b365860566c09df890dbcbfa94d9 (patch)
treee6c908cd8de87b559387f11e76092bd3390262df /src/urlbar
parentBookmarkWidget: Clean up setupFolderComboBox() (diff)
downloadrekonq-a2d92d6e7eb5b365860566c09df890dbcbfa94d9.tar.xz
Add an icon for the toolbar root entry in the BookmarkWidget
Don't duplicate the toolbar root entry in some cases
Diffstat (limited to 'src/urlbar')
-rw-r--r--src/urlbar/bookmarkwidget.cpp8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/urlbar/bookmarkwidget.cpp b/src/urlbar/bookmarkwidget.cpp
index ba5ade00..6026cb20 100644
--- a/src/urlbar/bookmarkwidget.cpp
+++ b/src/urlbar/bookmarkwidget.cpp
@@ -242,12 +242,14 @@ void BookmarkWidget::setupFolderComboBox()
if (toolBarRoot.address() == root.address())
{
- m_folder->addItem(i18n("Bookmark Toolbar"),
+ m_folder->addItem(KIcon("bookmark-toolbar"),
+ i18n("Bookmark Toolbar"),
toolBarRoot.address());
}
else
{
- m_folder->addItem(toolBarRoot.text(),
+ m_folder->addItem(KIcon("bookmark-toolbar"),
+ toolBarRoot.text(),
toolBarRoot.address());
}
m_folder->insertSeparator(1);
@@ -261,7 +263,7 @@ void BookmarkWidget::setupFolderComboBox()
for (KBookmark bookmark = toolBarRoot.first(); !bookmark.isNull(); bookmark = toolBarRoot.next(bookmark))
{
- if (bookmark.isGroup())
+ if (bookmark.isGroup() && bookmark.address() != m_bookmark->parentGroup().address())
{
m_folder->addItem(bookmark.text(), bookmark.address());
}