Commit 86f55d7e authored by kh's avatar kh
Browse files

Fix missing bookmark and folder icons.

parent 096a821c
......@@ -660,6 +660,7 @@ QModelIndex BookmarkManager::addNewFolder(const QModelIndex& index)
{
QStandardItem *item = new QStandardItem(uniqueFolderName());
item->setEditable(false);
item->setIcon(folderIcon);
item->setData(false, Qt::UserRole + 11);
item->setData(QLatin1String("Folder"), Qt::UserRole + 10);
item->setIcon(QApplication::style()->standardIcon(QStyle::SP_DirClosedIcon));
......@@ -715,9 +716,10 @@ void BookmarkManager::addNewBookmark(const QModelIndex& index,
{
QStandardItem *item = new QStandardItem(name);
item->setEditable(false);
item->setIcon(bookmarkIcon);
item->setData(false, Qt::UserRole + 11);
item->setData(url, Qt::UserRole + 10);
if (index.isValid())
treeModel->itemFromIndex(index)->appendRow(item);
else
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment