summaryrefslogtreecommitdiffstats
path: root/filesystemwidget.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'filesystemwidget.cpp')
-rw-r--r--filesystemwidget.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/filesystemwidget.cpp b/filesystemwidget.cpp
index f8fc294..60ae550 100644
--- a/filesystemwidget.cpp
+++ b/filesystemwidget.cpp
@@ -412,6 +412,14 @@ void FilesystemWidget::markSeen(){
}
}
+void FilesystemWidget::moveToArchive(){
+ QStringList selected = selectedFiles();
+ foreach(QFileInfo fi, selected){
+ QString md5 = Helper::md5Sum(fi.absoluteFilePath());
+ Helper::moveToArchive(fi.absoluteFilePath(), md5);
+ }
+}
+
void FilesystemWidget::selectAllPV(){
QModelIndex idx = mDirView->currentIndex();
if(idx.isValid()){