Autotest: Use more FilePath

Change-Id: I15de1121305f245274d74b4116786f6f07ffa3c2
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
This commit is contained in:
hjk
2022-09-22 17:23:20 +02:00
parent 9e9c0630ee
commit 5dcfbe6c52
3 changed files with 7 additions and 5 deletions

View File

@@ -446,11 +446,11 @@ static RunConfiguration *getRunConfiguration(const QString &buildTargetKey)
if (dName.isEmpty())
return nullptr;
// run configuration has been selected - fill config based on this one..
const QString exe = dialog.executable();
const FilePath exe = FilePath::fromString(dialog.executable());
runConfig = Utils::findOr(runConfigurations, nullptr, [&dName, &exe] (const RunConfiguration *rc) {
if (rc->displayName() != dName)
return false;
return rc->runnable().command.executable().toString() == exe;
return rc->runnable().command.executable() == exe;
});
if (runConfig && dialog.rememberChoice())
AutotestPlugin::cacheRunConfigChoice(buildTargetKey, ChoicePair(dName, exe));