aboutsummaryrefslogtreecommitdiff
path: root/lib/bookmarks/bookmarksmodel.cpp
diff options
context:
space:
mode:
authorAqua-sama <aqua@iserlohn-fortress.net>2018-01-11 00:27:34 +0100
committerAqua-sama <aqua@iserlohn-fortress.net>2018-01-11 00:27:34 +0100
commitf0e70bb59860c68dd3a2fd5ba286424e681eadc7 (patch)
tree8d84d5bf0746ca5267843018719096292c58f96d /lib/bookmarks/bookmarksmodel.cpp
parentBookmarksModel::insertItem (diff)
downloadsmolbote-f0e70bb59860c68dd3a2fd5ba286424e681eadc7.tar.xz
Editing bookmark items
Diffstat (limited to 'lib/bookmarks/bookmarksmodel.cpp')
-rw-r--r--lib/bookmarks/bookmarksmodel.cpp3
1 files changed, 3 insertions, 0 deletions
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;