diff options
| author | Arno <arno@disconnect.de> | 2016-12-06 12:20:15 +0100 |
|---|---|---|
| committer | Arno <arno@disconnect.de> | 2016-12-06 12:20:15 +0100 |
| commit | ab8a4b0f744c4132f39c6749842a5507408291f4 (patch) | |
| tree | 20ddfa4a418d0669a9639449a30e558e3530796f | |
| parent | 997ed9156ba7a1942cebd487fd5cc2818220fa78 (diff) | |
| download | ShemovCleaner-ab8a4b0f744c4132f39c6749842a5507408291f4.tar.gz ShemovCleaner-ab8a4b0f744c4132f39c6749842a5507408291f4.tar.bz2 ShemovCleaner-ab8a4b0f744c4132f39c6749842a5507408291f4.zip | |
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.
| -rw-r--r-- | filewidget.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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()); |
