diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-15 20:38:57 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-12-15 20:38:57 +0100 |
commit | f1353e9ffd34db5f755c7da0b3f9c10638fbfd38 (patch) | |
tree | a1f2ab30332a6383b0677bfcc2aec687b98851d6 /src/BatchImport.vala | |
parent | f8ca421bdacee8851965a4b802ada1d2366bdbc1 (diff) | |
parent | ede50c561ec9811704821a9ea0f04c3d6c20b5af (diff) |
Merge branch 'release/0.26.4-1'0.26.4-1
Diffstat (limited to 'src/BatchImport.vala')
-rw-r--r-- | src/BatchImport.vala | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/BatchImport.vala b/src/BatchImport.vala index 27cf4da..8e4ae5c 100644 --- a/src/BatchImport.vala +++ b/src/BatchImport.vala @@ -1265,7 +1265,14 @@ public class BatchImport : Object { ready_sources.add(completed_object); imported(completed_object.source, user_preview, total); - report_progress(completed_object.source.get_filesize()); + // If we have a photo, use master size. For RAW import, we might end up with reporting + // the size of the (much smaller) JPEG which will look like no progress at all + if (completed_object.source is PhotoSource) { + var photo_source = completed_object.source as PhotoSource; + report_progress(photo_source.get_master_filesize()); + } else { + report_progress(completed_object.source.get_filesize()); + } file_import_complete(); } |