+ fixes #0001831: FreeCAD can start only once

This commit is contained in:
wmayer 2015-04-12 02:02:30 +02:00
parent 2a5659c36b
commit 708f6665e6

View File

@ -205,7 +205,12 @@ void FileInfo::setFile(const char* name)
}
FileName = name;
std::replace(FileName.begin(), FileName.end(), '\\', '/');
// 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::string FileInfo::filePath () const