[niepce] importer: report camera download failure.



commit 95f3c0859665d4e258688fe83a4874907d1e3c6a
Author: Hubert Figuière <hub figuiere net>
Date:   Fri Jun 2 23:01:18 2017 -0400

    importer: report camera download failure.

 src/fwk/toolkit/gphoto.cpp |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/fwk/toolkit/gphoto.cpp b/src/fwk/toolkit/gphoto.cpp
index b8ae860..4667006 100644
--- a/src/fwk/toolkit/gphoto.cpp
+++ b/src/fwk/toolkit/gphoto.cpp
@@ -374,7 +374,7 @@ bool GpCamera::download_file(const std::string& folder, const std::string& file,
                                     GP_FILE_TYPE_NORMAL, camerafile.get(),
                                     m_priv->context);
     if (result == GP_OK) {
-        gp_file_save(camerafile.get(), dest.c_str());
+        result = gp_file_save(camerafile.get(), dest.c_str());
     }
 
     return (result == GP_OK);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]