RunControl: fix device passing to the doStart()

Brokken by the f1e973de79.

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 <jaroslaw.kobus@qt.io>
This commit is contained in:
Alexander Drozdov
2022-03-03 00:02:29 +10:00
committed by Jarek Kobus
parent 8e0ae8ba96
commit 771d0d67b9

View File

@@ -1193,7 +1193,7 @@ void SimpleTargetRunner::start()
} else { } else {
Runnable runnable = runControl()->runnable(); Runnable runnable = runControl()->runnable();
runnable.device = runControl()->device(); runnable.device = runControl()->device();
doStart(runControl()->runnable()); doStart(runnable);
} }
} }