aboutsummaryrefslogtreecommitdiff
path: root/todo/gui/tags/panel/table/widget.py
diff options
context:
space:
mode:
authorJoris2021-10-16 20:09:55 +0200
committerJoris2021-10-16 20:09:56 +0200
commita54b7776320ef5aa02e6ef7378c2a011dc454885 (patch)
tree0cc69107fc3db626ade1b91e70966f9ecff19678 /todo/gui/tags/panel/table/widget.py
parent9d8b61da195bf8de14159f1222a693d62ceebacd (diff)
downloadtodo-a54b7776320ef5aa02e6ef7378c2a011dc454885.tar.gz
todo-a54b7776320ef5aa02e6ef7378c2a011dc454885.tar.bz2
todo-a54b7776320ef5aa02e6ef7378c2a011dc454885.zip
Introduce due date
Also: - Remove duration, difficulty and priority, - Translate to french.
Diffstat (limited to 'todo/gui/tags/panel/table/widget.py')
-rw-r--r--todo/gui/tags/panel/table/widget.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/todo/gui/tags/panel/table/widget.py b/todo/gui/tags/panel/table/widget.py
index 1d10c73..dc2f1c5 100644
--- a/todo/gui/tags/panel/table/widget.py
+++ b/todo/gui/tags/panel/table/widget.py
@@ -62,7 +62,7 @@ class Widget(QtWidgets.QTableView):
elif event.key() == Qt.Key_Delete:
rows = self.get_selected_rows()
tags = self.model().row_ids(rows)
- if not todo.db.task_tags.one_is_used(todo.database.cursor(), tags):
+ if not todo.db.task_tags.one_is_used(todo.database.cursor(), tags) and len(rows) > 0:
todo.gui.tags.panel.dialog.confirm_delete(self, rows)
def get_selected_rows(self):