2007-12-10 23:50:32 +01:00
|
|
|
--- digikam/utilities/cameragui/cameracontroller.cpp 2007/12/10 09:13:29 1.1
|
|
|
|
+++ digikam/utilities/cameragui/cameracontroller.cpp 2007/12/10 09:16:08
|
2007-08-24 01:01:37 +02:00
|
|
|
@@ -58,6 +58,7 @@
|
2006-12-19 00:35:13 +01:00
|
|
|
#include <kmessagebox.h>
|
|
|
|
#include <kio/renamedlg.h>
|
|
|
|
#include <kstandarddirs.h>
|
|
|
|
+#include <ktempfile.h>
|
2007-12-10 23:50:32 +01:00
|
|
|
|
2006-12-19 00:35:13 +01:00
|
|
|
// Local includes.
|
2007-12-10 23:50:32 +01:00
|
|
|
|
|
|
|
@@ -925,12 +925,17 @@
|
|
|
|
break;
|
|
|
|
}
|
2006-12-19 00:35:13 +01:00
|
|
|
|
2007-12-10 23:50:32 +01:00
|
|
|
+ KTempFile tmp;
|
|
|
|
+ tmp.close();
|
|
|
|
+ d->camera->downloadItem(folder, file, tmp.name());
|
|
|
|
+
|
|
|
|
KIO::RenameDlg dlg(d->parent, i18n("Rename File"),
|
|
|
|
- folder + QString("/") + file, dest,
|
|
|
|
+ tmp.name(), dest,
|
|
|
|
KIO::RenameDlg_Mode(KIO::M_MULTI | KIO::M_OVERWRITE | KIO::M_SKIP));
|
|
|
|
|
|
|
|
int result = dlg.exec();
|
|
|
|
dest = dlg.newDestURL().path();
|
|
|
|
+ tmp.unlink();
|
|
|
|
|
|
|
|
switch (result)
|
|
|
|
{
|