13
0

when d-n-d'ing SMF, use file & track name for the new sources and regions

This commit is contained in:
Paul Davis 2024-10-15 09:36:35 -06:00
parent 2d0f472af5
commit cab7fdf3d0

View File

@ -442,11 +442,11 @@ Editor::drop_paths_part_two (const vector<string>& paths, timepos_t const & p, d
/* drop onto canvas background: create new tracks */
InstrumentSelector is(InstrumentSelector::ForTrackDefault); // instantiation builds instrument-list and sets default.
do_import (midi_paths, Editing::ImportDistinctFiles, ImportAsTrack, SrcBest, SMFTrackNumber, SMFTempoIgnore, pos, is.selected_instrument());
do_import (midi_paths, Editing::ImportDistinctFiles, ImportAsTrack, SrcBest, SMFFileAndTrackName, SMFTempoIgnore, pos, is.selected_instrument());
if (UIConfiguration::instance().get_only_copy_imported_files() || copy) {
do_import (audio_paths, Editing::ImportDistinctFiles, Editing::ImportAsTrack,
SrcBest, SMFTrackName, SMFTempoIgnore, pos);
SrcBest, SMFFileAndTrackName, SMFTempoIgnore, pos);
} else {
do_embed (audio_paths, Editing::ImportDistinctFiles, ImportAsTrack, pos);
}