aboutsummaryrefslogtreecommitdiff
path: root/lib/bookmarks/bookmarkitem.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bookmarks/bookmarkitem.cpp')
-rw-r--r--lib/bookmarks/bookmarkitem.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bookmarks/bookmarkitem.cpp b/lib/bookmarks/bookmarkitem.cpp
index ff78eb5..67b13b0 100644
--- a/lib/bookmarks/bookmarkitem.cpp
+++ b/lib/bookmarks/bookmarkitem.cpp
@@ -41,7 +41,7 @@ bool BookmarkItem::appendChild(BookmarkItem *childItem)
{
// Only folders can have children, so only append them on folders
// This way, we don't need to add checks to the other methods
- if(m_type == Folder) {
+ if(m_type == Folder || m_type == Root) {
m_children.append(childItem);
return true;
}
@@ -51,7 +51,7 @@ bool BookmarkItem::appendChild(BookmarkItem *childItem)
bool BookmarkItem::insertChild(int position, BookmarkItem *childItem)
{
- if(m_type == Folder) {
+ if(m_type == Folder || m_type == Root) {
m_children.insert(position, childItem);
return true;
}
@@ -87,7 +87,7 @@ int BookmarkItem::childCount() const
return m_children.count();
}
-QVariant BookmarkItem::data(int column) const
+QVariant BookmarkItem::data(Fields column) const
{
return m_data.value(column);
}