summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/bookmarks/bookmarkstreemodel.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/bookmarks/bookmarkstreemodel.cpp b/src/bookmarks/bookmarkstreemodel.cpp
index ba106ca5..254a914f 100644
--- a/src/bookmarks/bookmarkstreemodel.cpp
+++ b/src/bookmarks/bookmarkstreemodel.cpp
@@ -31,6 +31,7 @@
// Local Includes
#include "application.h"
#include "bookmarkprovider.h"
+#include "iconmanager.h"
// KDE Includes
#include <KBookmarkManager>
@@ -63,8 +64,12 @@ QVariant BtmItem::data(int role) const
if (role == Qt::DecorationRole)
{
- kDebug() << "BOOKMARK ICON: " << m_kbm.icon();
- return KIcon(m_kbm.icon());
+ // NOTE
+ // this should be:
+ // 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 (role == Qt::UserRole)