Commit 9a493f8b authored by Christian Kandeler's avatar Christian Kandeler

Fix using (local) custom run configuration with non-Desktop kits

For targets such as remote Linux, we would run all run configurations on
the remote device, even "custom run configuration", which is explicitly
intended for running locally.

Task-number: QTCREATORBUG-19121
Change-Id: I83d6bdd8a47440047d230266845286715432604a
Reviewed-by: default avatarhjk <hjk@qt.io>
parent 14e6a30e
......@@ -616,7 +616,10 @@ public:
runnable = runConfiguration->runnable();
displayName = runConfiguration->displayName();
outputFormatter = runConfiguration->createOutputFormatter();
device = DeviceKitInformation::device(runConfiguration->target()->kit());
if (runnable.is<StandardRunnable>())
device = runnable.as<StandardRunnable>().device;
if (!device)
device = DeviceKitInformation::device(runConfiguration->target()->kit());
project = runConfiguration->target()->project();
} else {
outputFormatter = new OutputFormatter();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment