1
--- a/digikam/utilities/cameragui/cameracontroller.cpp
2
+++ b/digikam/utilities/cameragui/cameracontroller.cpp
6
tempURL = tempURL.upURL();
7
- tempURL.addPath( QString(".digikam-camera-tmp1-%1").arg(getpid()));
8
+ tempURL.addPath( QString(".digikam-camera-tmp1-%1").arg(getpid()).prepend(file));
9
QString temp = tempURL.path();
11
bool result = d->camera->downloadItem(folder, file, tempURL.path());
15
tempURL2 = tempURL2.upURL();
16
- tempURL2.addPath( QString(".digikam-camera-tmp2-%1").arg(getpid()));
17
+ tempURL2.addPath( QString(".digikam-camera-tmp2-%1").arg(getpid()).prepend(file));
18
temp = tempURL2.path();
20
if (!jpegConvert(tempURL.path(), tempURL2.path(), file, losslessFormat))
22
unlink(QFile::encodeName(tempURL2.path()));
27
+ // Else remove only the first temp file.
28
+ unlink(QFile::encodeName(tempURL.path()));