summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarcelo Lira <marcelo.lira@openbossa.org>2012-05-30 19:22:54 -0300
committerMarcelo Lira <marcelo.lira@openbossa.org>2012-05-30 20:11:38 -0300
commitd1e51c7d3b5039eedc5d48b2d553b5b1eccba627 (patch)
tree4a3c126ecedd76463c203c95db4be3207c1a8cfa
parentc82c23fd6f6dbc538c2cd4c62eade68894a853fd (diff)
BookmarkModel should advertise when removing items.
With this fix our UI can respond to removal events in the bookmark storage. Reviewed-by: Rafael Brandão
-rw-r--r--src/core/BookmarkModel.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/BookmarkModel.cpp b/src/core/BookmarkModel.cpp
index 4780614..280a85e 100644
--- a/src/core/BookmarkModel.cpp
+++ b/src/core/BookmarkModel.cpp
@@ -86,8 +86,10 @@ void BookmarkModel::remove(const QString& url)
}
if (indexToDelete >= 0) {
+ beginRemoveRows(QModelIndex(), indexToDelete, indexToDelete);
removeRow(indexToDelete);
submitAll();
+ endRemoveRows();
}
}