Commit e51a783b authored by Claudio Valerio's avatar Claudio Valerio

fixed dnd on document mode

parent 8b7eb179
...@@ -324,12 +324,12 @@ void UBDocumentTreeWidget::dropEvent(QDropEvent *event) ...@@ -324,12 +324,12 @@ void UBDocumentTreeWidget::dropEvent(QDropEvent *event)
QString target = targetDocProxy->persistencePath() + "/" + relativeFile.toString(); QString target = targetDocProxy->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);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment