Commit f74b010d authored by Alexander's avatar Alexander

[stickers] Fix reference to undefined 'model'

parent ed35b4d7
......@@ -303,9 +303,9 @@ class StickersPlugin(GajimPlugin):
Returns the index of this item, or -1 if not found.
'''
# Find the correct index in the ListStore
for index_ in range(model.get_n_items()):
if model.get_item(index_).id_ == id_:
model.remove(index)
for index_ in range(self.sticker_pack_model.get_n_items()):
if self.sticker_pack_model.get_item(index_).id_ == id_:
self.sticker_pack_model.remove(index)
return index
log.warning('Cannot remove %s from sticker_pack_model: Not found', pack_id)
......
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