forked from qt-creator/qt-creator
ProjectExplorer: Introduce a IDevice::filePath
Same function as mapToGlobalPath, but operating on a QString specifying the local path part. It's the majority use case and arguably the 'right thing' to use instead of a full FilePath that can refer to arbitrary devices. Change-Id: Ifc8bd340e2e8859fe549f5724eb94269f587c418 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -109,7 +109,7 @@ void QdbStopApplicationService::doDeploy()
|
||||
emit stdOutData(QString::fromUtf8(m_process.readAllStandardOutput()));
|
||||
});
|
||||
|
||||
m_process.setCommand({device->mapToGlobalPath(Constants::AppcontrollerFilepath), {"--stop"}});
|
||||
m_process.setCommand({device->filePath(Constants::AppcontrollerFilepath), {"--stop"}});
|
||||
m_process.setWorkingDirectory("/usr/bin");
|
||||
m_process.start();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user