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. --- shemov.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'shemov.cpp') diff --git a/shemov.cpp b/shemov.cpp index 09d4f03..1006cab 100644 --- a/shemov.cpp +++ b/shemov.cpp @@ -1035,10 +1035,6 @@ void SheMov::mappingEditor(){ } void SheMov::newPicsDialog(){ - QDialog dlg(this); - QHBoxLayout *dlgLayout = new QHBoxLayout; - NewPicsDialog *npd = new NewPicsDialog; - dlgLayout->addWidget(npd); - dlg.setLayout(dlgLayout); - dlg.exec(); + NewPicsDialog npd(this); + npd.exec(); } -- cgit v1.2.3-70-g09d2