summaryrefslogtreecommitdiff
path: root/src/plugins/nim
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/nim')
-rw-r--r--src/plugins/nim/project/nimrunconfiguration.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/nim/project/nimrunconfiguration.cpp b/src/plugins/nim/project/nimrunconfiguration.cpp
index 808d36e101..142e434490 100644
--- a/src/plugins/nim/project/nimrunconfiguration.cpp
+++ b/src/plugins/nim/project/nimrunconfiguration.cpp
@@ -58,8 +58,8 @@ public:
setDisplayName(tr("Current Build Target"));
setDefaultDisplayName(tr("Current Build Target"));
- setUpdater([this] {
- auto buildConfiguration = qobject_cast<NimBuildConfiguration *>(activeBuildConfiguration());
+ setUpdater([this, target] {
+ auto buildConfiguration = qobject_cast<NimBuildConfiguration *>(target->activeBuildConfiguration());
QTC_ASSERT(buildConfiguration, return);
const QFileInfo outFileInfo = buildConfiguration->outFilePath().toFileInfo();
aspect<ExecutableAspect>()->setExecutable(FilePath::fromString(outFileInfo.absoluteFilePath()));