diff options
author | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-11-12 15:55:20 +0100 |
---|---|---|
committer | Jörg Frings-Fürst <debian@jff-webhosting.net> | 2017-11-12 15:55:20 +0100 |
commit | f6140ff1c9ec493d947da5b346508846e7a1a06f (patch) | |
tree | c01b9164ee4b0d46b6670ccee45f6181c6237d7f /src/BatchImport.vala | |
parent | 0f67b3cc674377559e66c5a6729fd499049a992f (diff) | |
parent | 2492891f112caac6076ce49721d9d5d78a152c3a (diff) |
Update upstream source from tag 'upstream/0.26.4'
Update to upstream version '0.26.4'
with Debian dir fae3cc48a8ec2f37979206f90dc828cbebee14c4
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(); } |