Commit 272c5c12 authored by Jens Georg's avatar Jens Georg
Browse files

Fix import progress when importing RAW files

parent 67b4d6ed
......@@ -1282,7 +1282,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();
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment