Skip to content

Commit

Permalink
fix: fix bug with error message when deleting all tracks in visual tr…
Browse files Browse the repository at this point in the history
…ack mode
  • Loading branch information
gwatcha committed Aug 20, 2020
1 parent cc69be6 commit 597928c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion internal/custom_actions/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,9 @@ function utils.unselectAllButLastTouchedTrack()
local last_touched_i = utils.getTrackPosition()
if last_touched_i then
local track = reaper.GetTrack(0, last_touched_i)
reaper.SetOnlyTrackSelected(track)
if track then
reaper.SetOnlyTrackSelected(track)
end
end
end

Expand Down

0 comments on commit 597928c

Please sign in to comment.