|
|
@ -504,12 +504,12 @@ void UBBoardController::addScene(UBGraphicsScene* scene, bool replaceActiveIfEmp |
|
|
|
QString target = selectedDocument()->persistencePath() + "/" + relativeFile.toString(); |
|
|
|
QString target = selectedDocument()->persistencePath() + "/" + relativeFile.toString(); |
|
|
|
|
|
|
|
|
|
|
|
if(QFileInfo(source).isDir()) |
|
|
|
if(QFileInfo(source).isDir()) |
|
|
|
Q_ASSERT(UBFileSystemUtils::copyDir(source,target)); |
|
|
|
UBFileSystemUtils::copyDir(source,target); |
|
|
|
else{ |
|
|
|
else{ |
|
|
|
QFileInfo fi(target); |
|
|
|
QFileInfo fi(target); |
|
|
|
QDir d = fi.dir(); |
|
|
|
QDir d = fi.dir(); |
|
|
|
d.mkpath(d.absolutePath()); |
|
|
|
d.mkpath(d.absolutePath()); |
|
|
|
Q_ASSERT(QFile::copy(source, target)); |
|
|
|
QFile::copy(source, target); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|