From e6b7e5e0fccef756398982bd51137bb433df7f4a Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 21 Mar 2015 07:10:32 +0100 Subject: Fixed and beefed up "Move to archive" It crashed when used on directories, because naturally md5sum was empty. So recurse through directories, collect files and check if we have a DB- Entry. If so, move the files back to archive. If not, skip them. --- filesystemwidget.h | 1 + 1 file changed, 1 insertion(+) (limited to 'filesystemwidget.h') diff --git a/filesystemwidget.h b/filesystemwidget.h index 23f8572..c909811 100644 --- a/filesystemwidget.h +++ b/filesystemwidget.h @@ -83,6 +83,7 @@ class FilesystemWidget : public QWidget { private: void deleteRecursive(const QFileInfo &start); + QFileInfoList getRecursive(const QFileInfo &start) const; void copyFiles(const QStringList &files, const QString &dest); void moveFiles(const QStringList &files, const QString &dest); void copyRecursive(const QFileInfo &start, const QString &destdir); -- cgit v1.2.3-70-g09d2