Commit 348844ac authored by Dan Pascu's avatar Dan Pascu

Added missing decorator for method that updates the contacts

parent cc4b17d2
...@@ -1120,6 +1120,7 @@ class ContactListView(QListView): ...@@ -1120,6 +1120,7 @@ class ContactListView(QListView):
model.removeItems(indexes) model.removeItems(indexes)
self.selectionModel().clearSelection() self.selectionModel().clearSelection()
@updates_contacts_db
def _AH_UndoLastDelete(self): def _AH_UndoLastDelete(self):
model = self.model() model = self.model()
for item in model.deleted_items.pop(): for item in model.deleted_items.pop():
...@@ -1320,6 +1321,7 @@ class ContactSearchListView(QListView): ...@@ -1320,6 +1321,7 @@ class ContactSearchListView(QListView):
model = self.model() model = self.model()
model.sourceModel().removeItems(model.mapToSource(index) for index in self.selectionModel().selectedIndexes() if model.data(index).deletable) model.sourceModel().removeItems(model.mapToSource(index) for index in self.selectionModel().selectedIndexes() if model.data(index).deletable)
@updates_contacts_db
def _AH_UndoLastDelete(self): def _AH_UndoLastDelete(self):
model = self.model().sourceModel() model = self.model().sourceModel()
for item in model.deleted_items.pop(): for item in model.deleted_items.pop():
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment