From e51a783b742a1dcb10fdd194b909af9c3127c5ed Mon Sep 17 00:00:00 2001 From: Claudio Valerio Date: Thu, 16 Oct 2014 18:24:06 +0200 Subject: [PATCH] fixed dnd on document mode --- src/gui/UBDocumentTreeWidget.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gui/UBDocumentTreeWidget.cpp b/src/gui/UBDocumentTreeWidget.cpp index 42210db9..7fc34e8f 100644 --- a/src/gui/UBDocumentTreeWidget.cpp +++ b/src/gui/UBDocumentTreeWidget.cpp @@ -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); } }