summaryrefslogtreecommitdiffstats
path: root/filesystemwidget.cpp
diff options
context:
space:
mode:
authorArno <am@disconnect.de>2013-01-27 15:49:44 +0100
committerArno <am@disconnect.de>2013-01-27 15:49:44 +0100
commite4085d22006bffa13679f70336ca7966f4be0fee (patch)
treee9db54ee9ba3bd3ca9acc1e2b110ccc58068b2c5 /filesystemwidget.cpp
parent2fa4f7f525f7138498635204693d94fd3de2d87e (diff)
downloadSheMov-e4085d22006bffa13679f70336ca7966f4be0fee.tar.gz
SheMov-e4085d22006bffa13679f70336ca7966f4be0fee.tar.bz2
SheMov-e4085d22006bffa13679f70336ca7966f4be0fee.zip
Move to archive
Add menu entry to move files back to archive. Needed when move to burn directory copies more files than expected.
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()){