From 26530f47ff13e20d46472c12abc7567a61c14e57 Mon Sep 17 00:00:00 2001 From: Arno Date: Sat, 25 Feb 2012 19:11:59 +0100 Subject: Make NewPicsDialog archive pictures Finally NewPicsDialog actually does something. Added another parameter to Helper::moveToArchive. If set to true, files will only be copied instead of moved. Default is false, not changing the expected behavior. --- helper.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helper.h') diff --git a/helper.h b/helper.h index 8c9482e..8a1f0d4 100644 --- a/helper.h +++ b/helper.h @@ -21,7 +21,7 @@ class QPixmap; namespace Helper { const QString mimeType(const QString &path); const QString md5Sum(const QString &path); - const QString moveToArchive(const QString &path, const QString &md5); + const QString moveToArchive(const QString &path, const QString &md5, bool copy = false); bool removeFromArchive(const QString &filename, const QString &md5); const QString createArchivePath(const QString &path, const QString &md5, bool withMd5 = false); QPair programData(const QString &prefix, const QString &preferred = QString()); -- cgit v1.2.3-70-g09d2