From c34efadf89c590d367faa0c9128fba6e92e5f3ed Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 14 Jun 2020 10:26:23 +0200 Subject: Prevent double addition of tags during creation --- todo/gui/tasks/table/widget.py | 1 - 1 file changed, 1 deletion(-) diff --git a/todo/gui/tasks/table/widget.py b/todo/gui/tasks/table/widget.py index e06c921..6d19b6f 100644 --- a/todo/gui/tasks/table/widget.py +++ b/todo/gui/tasks/table/widget.py @@ -142,7 +142,6 @@ class Widget(QtWidgets.QTableWidget): self._task_tags += [TaskTag(task_id=task.id, tag_id=tag_id) for tag_id in tags] self.insertRow(row) self.update_row(row) - self._task_tags += [TaskTag(task_id=task.id, tag_id=tag_id) for tag_id in tags] self.setRowCount(len(self._tasks)) return row -- cgit v1.2.3