another edge-case, don't crash on invalid files with zero channels
This commit is contained in:
parent
443ccb866f
commit
c7c3c1e924
@ -522,6 +522,11 @@ Session::import_files (ImportStatus& status)
|
||||
}
|
||||
}
|
||||
|
||||
if (channels == 0) {
|
||||
error << _("Import: file contains no channels.") << endmsg;
|
||||
continue;
|
||||
}
|
||||
|
||||
vector<string> new_paths = get_paths_for_new_sources (config.get_native_file_header_format(),
|
||||
status.replace_existing_source, *p,
|
||||
get_best_session_directory_for_new_source (),
|
||||
|
Loading…
Reference in New Issue
Block a user