Valgrind: Use FilePathAspect for main executable

Change-Id: I0bdb625b47d0f39b577684b6f407b9e8a6086d1f
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2023-05-22 15:19:44 +02:00
parent c7bce14525
commit cdf1926215
3 changed files with 2 additions and 3 deletions

View File

@@ -53,7 +53,7 @@ ValgrindToolRunner::ValgrindToolRunner(RunControl *runControl)
void ValgrindToolRunner::start()
{
FilePath valgrindExecutable = m_settings.valgrindExecutable.filePath();
FilePath valgrindExecutable = m_settings.valgrindExecutable();
if (IDevice::ConstPtr dev = DeviceKitAspect::device(runControl()->kit()))
valgrindExecutable = dev->filePath(valgrindExecutable.path());
if (!valgrindExecutable.isExecutableFile()) {