2006-12-19 00:35:13 +01:00
|
|
|
--- digikam/utilities/cameragui/cameracontroller.cpp
|
|
|
|
+++ digikam/utilities/cameragui/cameracontroller.cpp
|
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>
|
|
|
|
|
|
|
|
// Local includes.
|
|
|
|
|
2007-08-24 01:01:37 +02:00
|
|
|
@@ -1143,12 +1144,16 @@
|
2006-12-19 00:35:13 +01:00
|
|
|
|
|
|
|
// FIXME : see B.K.O #126427: with Gphoto camera, the camera folder is not
|
|
|
|
// mounted in local and camera picture cannot be display like a preview in dialog.
|
|
|
|
+ KTempFile tmp;
|
|
|
|
+ tmp.close();
|
|
|
|
+ d->camera->downloadItem(folder, file, tmp.name());
|
|
|
|
|
|
|
|
- KIO::RenameDlg dlg(d->parent, i18n("Rename File"), folder + QString("/") + file, dest,
|
|
|
|
+ KIO::RenameDlg dlg(d->parent, i18n("Rename File"), 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)
|
|
|
|
{
|