From 8a6e10d401eea8db0947f8c4b309b8a6256f9748 Mon Sep 17 00:00:00 2001 From: Joris Date: Sun, 10 May 2020 20:24:24 +0200 Subject: Add tags panel --- src/gui/tasks/table/menu.py | 2 +- src/gui/tasks/table/model.py | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'src/gui/tasks/table') diff --git a/src/gui/tasks/table/menu.py b/src/gui/tasks/table/menu.py index edc9833..435ff25 100644 --- a/src/gui/tasks/table/menu.py +++ b/src/gui/tasks/table/menu.py @@ -14,7 +14,7 @@ def open(database, table, update_task_signal, position): else: modify_action = QtWidgets.QAction(menu) - delete_action = menu.addAction(gui.icon.trash(menu.style()), 'Delete') + delete_action = menu.addAction(gui.icon.trash(menu.style()), 'delete') action = menu.exec_(table.mapToGlobal(position)) if action == modify_action and len(rows) == 1: diff --git a/src/gui/tasks/table/model.py b/src/gui/tasks/table/model.py index bf9e386..ab969ec 100644 --- a/src/gui/tasks/table/model.py +++ b/src/gui/tasks/table/model.py @@ -35,7 +35,6 @@ class TableModel(QtCore.QAbstractTableModel): task = self._tasks[index.row()] if role == Qt.DisplayRole: - task = self._tasks[index.row()] if index.column() == 0: return age_since(task.created_at) elif index.column() == 1: -- cgit v1.2.3