From ab8a4b0f744c4132f39c6749842a5507408291f4 Mon Sep 17 00:00:00 2001 From: Arno Date: Tue, 6 Dec 2016 12:20:15 +0100 Subject: Do not try to copy directories We don't have support for recursive copies, and I'm not really sure if we need it, so don't do it for now. --- filewidget.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'filewidget.cpp') diff --git a/filewidget.cpp b/filewidget.cpp index 6b5770f..2ae9538 100644 --- a/filewidget.cpp +++ b/filewidget.cpp @@ -540,7 +540,7 @@ void FileWidget::copyFiles(QString destDir){ foreach(auto idx, files){ QString fp = idx.data(FullPathRole).toString(); QFileInfo fi(fp); - if(!fi.exists()){ + if(!fi.exists() || fi.isDir()){ continue; } QString destFile = QString("%1%2%3").arg(destDir).arg(QDir::separator()).arg(fi.fileName()); -- cgit v1.2.3-70-g09d2