From cab7fdf3d069fe4ae335723aa013e2be709c27b1 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 15 Oct 2024 09:36:35 -0600 Subject: [PATCH] when d-n-d'ing SMF, use file & track name for the new sources and regions --- gtk2_ardour/editor_canvas.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk2_ardour/editor_canvas.cc b/gtk2_ardour/editor_canvas.cc index f873b00ddf..398f5d96f7 100644 --- a/gtk2_ardour/editor_canvas.cc +++ b/gtk2_ardour/editor_canvas.cc @@ -442,11 +442,11 @@ Editor::drop_paths_part_two (const vector& 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); }