diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bookmarks/bookmarkmodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bookmarks/bookmarkmodel.cpp b/lib/bookmarks/bookmarkmodel.cpp index 05df3d7..8599f1d 100644 --- a/lib/bookmarks/bookmarkmodel.cpp +++ b/lib/bookmarks/bookmarkmodel.cpp @@ -95,7 +95,8 @@ bool BookmarkModel::setData(const QModelIndex &index, const QVariant &value, Boo Qt::ItemFlags BookmarkModel::flags(const QModelIndex &index) const { - if(getItem(index)->type() == BookmarkItem::Folder) + const auto type = getItem(index)->type(); + if(type == BookmarkItem::Folder || type == BookmarkItem::Root) return QAbstractItemModel::flags(index) | Qt::ItemIsDragEnabled | Qt::ItemIsDropEnabled; else return QAbstractItemModel::flags(index) | Qt::ItemIsDragEnabled | Qt::ItemNeverHasChildren; |