diff --git a/src/board/UBBoardController.cpp b/src/board/UBBoardController.cpp index 603d7b1f..601079cc 100644 --- a/src/board/UBBoardController.cpp +++ b/src/board/UBBoardController.cpp @@ -504,12 +504,12 @@ void UBBoardController::addScene(UBGraphicsScene* scene, bool replaceActiveIfEmp QString target = selectedDocument()->persistencePath() + "/" + relativeFile.toString(); if(QFileInfo(source).isDir()) - Q_ASSERT(UBFileSystemUtils::copyDir(source,target)); + UBFileSystemUtils::copyDir(source,target); else{ QFileInfo fi(target); QDir d = fi.dir(); d.mkpath(d.absolutePath()); - Q_ASSERT(QFile::copy(source, target)); + QFile::copy(source, target); } } } diff --git a/src/core/UBPersistenceManager.cpp b/src/core/UBPersistenceManager.cpp index d83b20ee..64e57691 100644 --- a/src/core/UBPersistenceManager.cpp +++ b/src/core/UBPersistenceManager.cpp @@ -484,7 +484,7 @@ void UBPersistenceManager::deleteDocumentScenes(UBDocumentProxy* proxy, const QL QDir d = fi.dir(); d.mkpath(d.absolutePath()); - Q_ASSERT(QFile::rename(source, target)); + QFile::rename(source, target); } insertDocumentSceneAt(trashDocProxy, scene, trashDocProxy->pageCount());