30 lines
1.0 KiB
Diff
30 lines
1.0 KiB
Diff
--- digikam/utilities/cameragui/cameracontroller.cpp 2007/12/10 09:13:29 1.1
|
|
+++ digikam/utilities/cameragui/cameracontroller.cpp 2007/12/10 09:16:08
|
|
@@ -58,6 +58,7 @@
|
|
#include <kmessagebox.h>
|
|
#include <kio/renamedlg.h>
|
|
#include <kstandarddirs.h>
|
|
+#include <ktempfile.h>
|
|
|
|
// Local includes.
|
|
|
|
@@ -925,12 +925,17 @@
|
|
break;
|
|
}
|
|
|
|
+ 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)
|
|
{
|