+ fixes #0001831: FreeCAD can start only once
This commit is contained in:
parent
2a5659c36b
commit
708f6665e6
|
@ -205,6 +205,11 @@ void FileInfo::setFile(const char* name)
|
||||||
}
|
}
|
||||||
|
|
||||||
FileName = name;
|
FileName = name;
|
||||||
|
|
||||||
|
// keep the UNC paths intact
|
||||||
|
if (FileName.substr(0,2) == std::string("\\\\"))
|
||||||
|
std::replace(FileName.begin()+2, FileName.end(), '\\', '/');
|
||||||
|
else
|
||||||
std::replace(FileName.begin(), FileName.end(), '\\', '/');
|
std::replace(FileName.begin(), FileName.end(), '\\', '/');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user