diff --git a/src/core/UBPersistenceManager.cpp b/src/core/UBPersistenceManager.cpp index 7be6bddb..153fa788 100644 --- a/src/core/UBPersistenceManager.cpp +++ b/src/core/UBPersistenceManager.cpp @@ -847,11 +847,7 @@ QString UBPersistenceManager::teacherGuideAbsoluteObjectPath(UBDocumentProxy* pD QString UBPersistenceManager::addObjectToTeacherGuideDirectory(UBDocumentProxy* pDocumentProxy, QString pPath) { - QString path = pPath; - //windows - //path=path.replace("file:///",""); - //others - path=path.replace("file://",""); + QString path = UBFileSystemUtils::removeLocalFilePrefix(pPath); QFileInfo fi(path); QString uuid = QUuid::createUuid();