13
0

don't create a TimeFX dialog unless we actually need one

git-svn-id: svn://localhost/ardour2/branches/3.0@12554 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Paul Davis 2012-06-04 15:22:47 +00:00
parent ab9a1eb348
commit 3077b251a1

View File

@ -144,8 +144,7 @@ int
Editor::time_fx (RegionList& regions, float val, bool pitching)
{
delete current_timefx;
current_timefx = new TimeFXDialog (*this, pitching);
current_timefx->regions = regions;
current_timefx = 0;
/* See if we have any audio regions on our list */
RegionList::iterator i = regions.begin ();
@ -159,6 +158,9 @@ 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;