projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ab9a1eb
)
don't create a TimeFX dialog unless we actually need one
author
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 4 Jun 2012 15:22:47 +0000
(15:22 +0000)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Mon, 4 Jun 2012 15:22:47 +0000
(15:22 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@12554
d708f5d6
-7413-0410-9779-
e7cbd77b26cf
gtk2_ardour/editor_timefx.cc
patch
|
blob
|
history
diff --git
a/gtk2_ardour/editor_timefx.cc
b/gtk2_ardour/editor_timefx.cc
index 2f0b09ed17a36f4d22b3990c30b6a47f027e1a9c..ab836a28f4ebd8f9dbf1cc3104841f595354d839 100644
(file)
--- a/
gtk2_ardour/editor_timefx.cc
+++ b/
gtk2_ardour/editor_timefx.cc
@@
-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;