forked from qt-creator/qt-creator
McuSupport: Use FilePath::fromUserInput instead of fromString
to normalize path separators for all OS-es Change-Id: Iad6ea4abf21ba57705e07007bb238ebd7748ecfe Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Dawid Śliwa <dawid.sliwa@qt.io>
This commit is contained in:
@@ -75,7 +75,7 @@ McuPackage::McuPackage(const SettingsHandler::Ptr &settingsHandler,
|
||||
, m_downloadUrl(downloadUrl)
|
||||
, m_addToSystemPath(addToSystemPath)
|
||||
{
|
||||
m_path = FilePath::fromString(
|
||||
m_path = FilePath::fromUserInput(
|
||||
qEnvironmentVariable(m_environmentVariableName.toStdString().c_str()));
|
||||
if (!m_path.exists()) {
|
||||
m_path = this->settingsHandler->getPath(settingsKey, QSettings::UserScope, m_defaultPath);
|
||||
|
||||
Reference in New Issue
Block a user