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. --- archivemodel.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'archivemodel.h') diff --git a/archivemodel.h b/archivemodel.h index 8dd60f8..27cd8cf 100644 --- a/archivemodel.h +++ b/archivemodel.h @@ -105,6 +105,8 @@ class ArchiveFilesModel : public SmTreeModel { void populate(const QSet &seriesPartIds); QStringList filesForSeriespart(int seriesPartId) const; void updateSeriesPartForFile(const QString &md5sum, int newSeriesPart); + static bool hasFile(const QString &md5); + static bool setDvdNo(const QString &md5, int dvdno); public slots: void refresh(); -- cgit v1.2.3-70-g09d2