diff options
-rw-r--r-- | gtk2_ardour/editor_timefx.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_timefx.cc b/gtk2_ardour/editor_timefx.cc index ab836a28f4..2f0b09ed17 100644 --- a/gtk2_ardour/editor_timefx.cc +++ b/gtk2_ardour/editor_timefx.cc @@ -144,7 +144,8 @@ int Editor::time_fx (RegionList& regions, float val, bool pitching) { delete current_timefx; - current_timefx = 0; + current_timefx = new TimeFXDialog (*this, pitching); + current_timefx->regions = regions; /* See if we have any audio regions on our list */ RegionList::iterator i = regions.begin (); @@ -158,9 +159,6 @@ Editor::time_fx (RegionList& regions, float val, bool pitching) return 0; } - current_timefx = new TimeFXDialog (*this, pitching); - current_timefx->regions = regions; - switch (current_timefx->run ()) { case RESPONSE_ACCEPT: break; |