--- digikam/utilities/cameragui/cameracontroller.cpp +++ digikam/utilities/cameragui/cameracontroller.cpp @@ -58,6 +58,7 @@ #include #include #include +#include // Local includes. @@ -1143,12 +1144,16 @@ // 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) {