summaryrefslogtreecommitdiffstats
path: root/archivemodel.h
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2015-03-21 07:10:32 +0100
committerArno <am@disconnect.de>2015-03-21 07:10:32 +0100
commite6b7e5e0fccef756398982bd51137bb433df7f4a (patch)
tree7ed19e9f60d30269124ef54ec47fc9e68718d6e1 /archivemodel.h
parentd4708602ac2ec4f23161ae154eb86e3f6a2740fb (diff)
downloadSheMov-e6b7e5e0fccef756398982bd51137bb433df7f4a.tar.gz
SheMov-e6b7e5e0fccef756398982bd51137bb433df7f4a.tar.bz2
SheMov-e6b7e5e0fccef756398982bd51137bb433df7f4a.zip
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.
Diffstat (limited to 'archivemodel.h')
-rw-r--r--archivemodel.h2
1 files changed, 2 insertions, 0 deletions
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<int> &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();