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)
QString target = targetDocProxy->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);
}
}
......
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