when d-n-d'ing SMF, use file & track name for the new sources and regions
This commit is contained in:
parent
2d0f472af5
commit
cab7fdf3d0
@ -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 */
|
/* drop onto canvas background: create new tracks */
|
||||||
|
|
||||||
InstrumentSelector is(InstrumentSelector::ForTrackDefault); // instantiation builds instrument-list and sets default.
|
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) {
|
if (UIConfiguration::instance().get_only_copy_imported_files() || copy) {
|
||||||
do_import (audio_paths, Editing::ImportDistinctFiles, Editing::ImportAsTrack,
|
do_import (audio_paths, Editing::ImportDistinctFiles, Editing::ImportAsTrack,
|
||||||
SrcBest, SMFTrackName, SMFTempoIgnore, pos);
|
SrcBest, SMFFileAndTrackName, SMFTempoIgnore, pos);
|
||||||
} else {
|
} else {
|
||||||
do_embed (audio_paths, Editing::ImportDistinctFiles, ImportAsTrack, pos);
|
do_embed (audio_paths, Editing::ImportDistinctFiles, ImportAsTrack, pos);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user