aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoris2020-06-14 10:26:23 +0200
committerJoris2020-06-14 10:26:23 +0200
commitc34efadf89c590d367faa0c9128fba6e92e5f3ed (patch)
treea61101a374fa487accc3ba38655d05ef962fea4e
parent21adbec8d8c05533c3723a90b8356effabc62b15 (diff)
Prevent double addition of tags during creation
-rw-r--r--todo/gui/tasks/table/widget.py1
1 files changed, 0 insertions, 1 deletions
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