mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Fix DnD import to grouped tracks
Import via Drag/Drop previously worked by selecting a track, and then importing to the selected track. This approach fails when the selected track is in a track-group, and selecting the track also selects other tracks of different type. Now the track to drop onto is passed directly passed through to ::finish_bringing_in_material as existing_track.
This commit is contained in:
parent
20088062bb
commit
07dea50456
7 changed files with 31 additions and 26 deletions
|
|
@ -5,10 +5,10 @@ function factory (params) return function ()
|
|||
|
||||
files:push_back("/tmp/test.wav")
|
||||
|
||||
local pos = -1
|
||||
local pos = Temporal.timepos_t(0)
|
||||
Editor:do_import (files,
|
||||
Editing.ImportDistinctFiles, Editing.ImportAsTrack, ARDOUR.SrcQuality.SrcBest,
|
||||
ARDOUR.MidiTrackNameSource.SMFTrackName, ARDOUR.MidiTempoMapDisposition.SMFTempoIgnore,
|
||||
pos, ARDOUR.PluginInfo(), false)
|
||||
pos, ARDOUR.PluginInfo(), ARDOUR.Track(), false)
|
||||
|
||||
end end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue