From f0e70bb59860c68dd3a2fd5ba286424e681eadc7 Mon Sep 17 00:00:00 2001 From: Aqua-sama Date: Thu, 11 Jan 2018 00:27:34 +0100 Subject: Editing bookmark items --- lib/bookmarks/bookmarksmodel.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/bookmarks/bookmarksmodel.cpp') diff --git a/lib/bookmarks/bookmarksmodel.cpp b/lib/bookmarks/bookmarksmodel.cpp index 69f6334..e67668f 100644 --- a/lib/bookmarks/bookmarksmodel.cpp +++ b/lib/bookmarks/bookmarksmodel.cpp @@ -220,6 +220,7 @@ bool BookmarksModel::setData(const QModelIndex &index, const QVariant &value, in case BookmarkItem::Folder: if(index.column() == 0) { node->title = value.toString(); + emit dataChanged(index, index); return true; } return false; @@ -227,9 +228,11 @@ bool BookmarksModel::setData(const QModelIndex &index, const QVariant &value, in case BookmarkItem::Bookmark: if(index.column() == 0) { node->title = value.toString(); + emit dataChanged(index, index); return true; } else if(index.column() == 1) { node->href = value.toString(); + emit dataChanged(index, index); return true; } return false; -- cgit v1.2.1