| 146 | } |
| 147 | |
| 148 | void TaskManager::triggerDefaultHandler(const QModelIndex &index) |
| 149 | { |
| 150 | if (!index.isValid()) |
| 151 | return; |
| 152 | |
| 153 | auto realIndex = filterModel->mapToSource(index); |
| 154 | Task task(model->task(realIndex)); |
| 155 | if (task.isNull()) |
| 156 | return; |
| 157 | |
| 158 | if (task.file.exists()) { |
| 159 | editor.gotoLine(task.file.toString(), task.movedLine - 1); |
| 160 | } |
| 161 | } |