forked from qt-creator/qt-creator
RemoteLinux: Avoid two explicit uses of IDevice::mapToGlobalPath()
Change-Id: I5e1e3f3de1118234dcaf1faa5690662876e85b4c Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
This commit is contained in:
@@ -1027,7 +1027,7 @@ LinuxDevice::LinuxDevice()
|
||||
d->m_terminals.removeOne(proc);
|
||||
});
|
||||
|
||||
proc->setCommand({ mapToGlobalPath({}), {}});
|
||||
proc->setCommand({filePath({}), {}});
|
||||
proc->setTerminalMode(TerminalMode::On);
|
||||
proc->setEnvironment(env);
|
||||
proc->setWorkingDirectory(workingDir);
|
||||
|
@@ -81,8 +81,7 @@ void RemoteLinuxCheckForFreeDiskSpaceService::setRequiredSpaceInBytes(quint64 si
|
||||
void RemoteLinuxCheckForFreeDiskSpaceService::deployAndFinish()
|
||||
{
|
||||
auto cleanup = qScopeGuard([this] { setFinished(); });
|
||||
const FilePath path
|
||||
= deviceConfiguration()->mapToGlobalPath(FilePath::fromString(m_pathToCheck));
|
||||
const FilePath path = deviceConfiguration()->filePath(m_pathToCheck);
|
||||
const qint64 freeSpace = path.bytesAvailable();
|
||||
if (freeSpace < 0) {
|
||||
emit errorMessage(tr("Cannot get info about free disk space for \"%1\"")
|
||||
|
Reference in New Issue
Block a user