revert previous commit
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 4 Jun 2012 15:23:36 +0000 (15:23 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 4 Jun 2012 15:23:36 +0000 (15:23 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12555 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_timefx.cc

index ab836a28f4ebd8f9dbf1cc3104841f595354d839..2f0b09ed17a36f4d22b3990c30b6a47f027e1a9c 100644 (file)
@@ -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;