From 771d0d67b9616b22948c05ac8c8d580ce6c28d0e Mon Sep 17 00:00:00 2001 From: Alexander Drozdov Date: Thu, 3 Mar 2022 00:02:29 +1000 Subject: [PATCH] RunControl: fix device passing to the doStart() Brokken by the f1e973de794e2e11f1eb92d6fa4dbad1bee1429c. We must pass local `runnable` instead of runControl()->runnable(), otherwise device member will be nullptr that breaks all non-Desktop run configurations, like RemoteLinux one. Change-Id: I0499008aee14cb3bbcc3e1ebda71c50533b6502e Reviewed-by: Jarek Kobus --- src/plugins/projectexplorer/runcontrol.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/projectexplorer/runcontrol.cpp b/src/plugins/projectexplorer/runcontrol.cpp index a5eda1ef621..1ea65831037 100644 --- a/src/plugins/projectexplorer/runcontrol.cpp +++ b/src/plugins/projectexplorer/runcontrol.cpp @@ -1193,7 +1193,7 @@ void SimpleTargetRunner::start() } else { Runnable runnable = runControl()->runnable(); runnable.device = runControl()->device(); - doStart(runControl()->runnable()); + doStart(runnable); } }