From be1d2bcc2748494933fb9a01740294db038e0a6b Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Thu, 12 Jul 2012 15:08:45 +0200 Subject: [PATCH] fixed path problem --- src/core/UBPersistenceManager.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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();