mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
check if rv != nil, so it can still be run again if the user bails.
This commit is contained in:
parent
65e5152c6f
commit
7496f06fa3
1 changed files with 20 additions and 19 deletions
|
|
@ -17,30 +17,31 @@ function factory () return function ()
|
||||||
}
|
}
|
||||||
|
|
||||||
local rv = LuaDialog.Dialog("Change all Meter Taps:", dialog_options):run()
|
local rv = LuaDialog.Dialog("Change all Meter Taps:", dialog_options):run()
|
||||||
|
if rv then
|
||||||
meter_point = rv['select']
|
meter_point = rv['select']
|
||||||
if rv['select-tracks'] then
|
if rv['select-tracks'] then
|
||||||
local sel = Editor:get_selection ()
|
local sel = Editor:get_selection ()
|
||||||
for route in sel.tracks:routelist():iter() do
|
for route in sel.tracks:routelist():iter() do
|
||||||
if not(route:to_track():isnil()) then
|
if not(route:to_track():isnil()) then
|
||||||
if rv['rec-tracks'] then
|
if rv['rec-tracks'] then
|
||||||
if route:rec_enable_control():get_value() == 1.0 then
|
if route:rec_enable_control():get_value() == 1.0 then
|
||||||
|
route:to_track():set_meter_point(meter_point, false)
|
||||||
|
end
|
||||||
|
else
|
||||||
route:to_track():set_meter_point(meter_point, false)
|
route:to_track():set_meter_point(meter_point, false)
|
||||||
end
|
end
|
||||||
else
|
|
||||||
route:to_track():set_meter_point(meter_point, false)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
else
|
||||||
else
|
for route in Session:get_routes():iter() do
|
||||||
for route in Session:get_routes():iter() do
|
if not(route:to_track():isnil()) then
|
||||||
if not(route:to_track():isnil()) then
|
if rv['rec-tracks'] then
|
||||||
if rv['rec-tracks'] then
|
if route:rec_enable_control():get_value() == 1.0 then
|
||||||
if route:rec_enable_control():get_value() == 1.0 then
|
route:to_track():set_meter_point(meter_point, false)
|
||||||
|
end
|
||||||
|
else
|
||||||
route:to_track():set_meter_point(meter_point, false)
|
route:to_track():set_meter_point(meter_point, false)
|
||||||
end
|
end
|
||||||
else
|
|
||||||
route:to_track():set_meter_point(meter_point, false)
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue