forked from qt-creator/qt-creator
Utils: Allow FilePath::onDevice for local paths
Change-Id: I1ae62e077382abddbb32327897e87331cfc02476 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -1210,7 +1210,7 @@ FilePath FilePath::onDevice(const FilePath &deviceTemplate) const
|
||||
if (sameDevice)
|
||||
return *this;
|
||||
// TODO: converting paths between different non local devices is still unsupported
|
||||
QTC_CHECK(!needsDevice());
|
||||
QTC_CHECK(!needsDevice() || !deviceTemplate.needsDevice());
|
||||
return fromParts(deviceTemplate.scheme(),
|
||||
deviceTemplate.host(),
|
||||
deviceTemplate.fileAccess()->mapToDevicePath(path()));
|
||||
|
Reference in New Issue
Block a user