diff options
author | Yoann Laissus <yoann.laissus@gmail.com> | 2010-09-02 12:20:21 +0200 |
---|---|---|
committer | Yoann Laissus <yoann.laissus@gmail.com> | 2010-09-02 12:20:21 +0200 |
commit | 8830c32f2c4aea542003f71e14a43c712e2d91e0 (patch) | |
tree | bf7a8b859abffc1ecc33898a58a5baeea46dc27f /src/bookmarks/bookmarkstreemodel.cpp | |
parent | This should improve adblock retrieving by NOT asking for SSL confirmations (diff) | |
download | rekonq-8830c32f2c4aea542003f71e14a43c712e2d91e0.tar.xz |
A little bunch of fixes :
- Bookmarks saved with KMimeType::iconNameForUrl are now correctly displayed in the BK bar
- Folder icons in the BK panel are fixed
- Unset the current bookmark after a context menu deletition to avoid some bugs
- Cleanup
Diffstat (limited to 'src/bookmarks/bookmarkstreemodel.cpp')
-rw-r--r-- | src/bookmarks/bookmarkstreemodel.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/bookmarks/bookmarkstreemodel.cpp b/src/bookmarks/bookmarkstreemodel.cpp index 254a914f..4e85c422 100644 --- a/src/bookmarks/bookmarkstreemodel.cpp +++ b/src/bookmarks/bookmarkstreemodel.cpp @@ -69,7 +69,10 @@ QVariant BtmItem::data(int role) const // return KIcon(m_kbm.icon()); // but I cannot let it work :( // I really cannot understand how let this work properly... - return Application::iconManager()->iconForUrl(KUrl(m_kbm.url())); + if (m_kbm.isGroup() || m_kbm.isSeparator()) + return KIcon(m_kbm.icon()); + else + return Application::iconManager()->iconForUrl(KUrl(m_kbm.url())); } if (role == Qt::UserRole) |