From 1e206c5dc345e14fddc2c575e724611ba5bac446 Mon Sep 17 00:00:00 2001 From: Zhang TingAn Date: Fri, 22 Nov 2024 11:13:54 +0800 Subject: [PATCH] fix: [builder] Double-clicking the error item did not open the file where the error occurs. Log: as title --- src/plugins/builder/tasks/taskmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/plugins/builder/tasks/taskmanager.cpp b/src/plugins/builder/tasks/taskmanager.cpp index 028100529..87bcf55c2 100644 --- a/src/plugins/builder/tasks/taskmanager.cpp +++ b/src/plugins/builder/tasks/taskmanager.cpp @@ -67,7 +67,8 @@ void TaskManager::triggerDefaultHandler(const QModelIndex &index) if (!index.isValid()) return; - Task task(model->task(index)); + auto realIndex = filterModel->mapToSource(index); + Task task(model->task(realIndex)); if (task.isNull()) return;