aboutsummaryrefslogtreecommitdiff
path: root/todo/gui/tasks/table/menu.py
diff options
context:
space:
mode:
Diffstat (limited to 'todo/gui/tasks/table/menu.py')
-rw-r--r--todo/gui/tasks/table/menu.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/todo/gui/tasks/table/menu.py b/todo/gui/tasks/table/menu.py
index 78c85ac..ad8415b 100644
--- a/todo/gui/tasks/table/menu.py
+++ b/todo/gui/tasks/table/menu.py
@@ -12,24 +12,24 @@ def open(table: QtWidgets.QTableWidget, status: Status, update_task_signal, posi
menu = QtWidgets.QMenu(table)
if len(rows) == 1:
- modify_action = menu.addAction(todo.gui.icon.dialog_open(menu.style()), "modify")
+ modify_action = menu.addAction(todo.gui.icon.dialog_open(menu.style()), "Modifier")
else:
modify_action = QtWidgets.QAction(menu)
- delete_action = menu.addAction(todo.gui.icon.trash(menu.style()), "delete")
+ delete_action = menu.addAction(todo.gui.icon.trash(menu.style()), "Supprimer")
if status != Status.READY:
- move_to_ready = menu.addAction(todo.gui.icon.task_ready(menu.style()), "move to ready")
+ move_to_ready = menu.addAction(todo.gui.icon.task_ready(menu.style()), "Mettre à prêt")
else:
move_to_ready = QtWidgets.QAction(menu)
if status != Status.WAITING:
- move_to_waiting = menu.addAction(todo.gui.icon.task_waiting(menu.style()), "move to waiting")
+ move_to_waiting = menu.addAction(todo.gui.icon.task_waiting(menu.style()), "Mettre en attente")
else:
move_to_waiting = QtWidgets.QAction(menu)
if status != Status.MAYBE:
- move_to_maybe = menu.addAction(todo.gui.icon.task_maybe(menu.style()), "move to maybe")
+ move_to_maybe = menu.addAction(todo.gui.icon.task_maybe(menu.style()), "Mettre à peut-être")
else:
move_to_maybe = QtWidgets.QAction(menu)
@@ -38,7 +38,7 @@ def open(table: QtWidgets.QTableWidget, status: Status, update_task_signal, posi
row = list(rows)[0]
(task, tags) = table.get_at(row)
todo.gui.tasks.dialog.update(table, update_task_signal, row, task, tags).exec_()
- elif action == delete_action:
+ elif action == delete_action and len(rows) > 0:
todo.gui.tasks.dialog.confirm_delete(table, rows, lambda: table.delete_rows(rows))
elif action == move_to_ready:
table.update_status(rows, Status.READY)