forked from qt-creator/qt-creator
Utils: Store Device::osType in settings
Change-Id: I41348be752598b7a8d1f1979764e7111cccc95a9 Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
@@ -1566,7 +1566,11 @@ bool FilePath::setPermissions(QFile::Permissions permissions) const
|
||||
|
||||
OsType FilePath::osType() const
|
||||
{
|
||||
return fileAccess()->osType(*this);
|
||||
if (!needsDevice())
|
||||
return HostOsInfo::hostOs();
|
||||
|
||||
QTC_ASSERT(s_deviceHooks.osType, return HostOsInfo::hostOs());
|
||||
return s_deviceHooks.osType(*this);
|
||||
}
|
||||
|
||||
bool FilePath::removeFile() const
|
||||
|
||||
Reference in New Issue
Block a user