diff options
author | Carl Hetherington <carl@carlh.net> | 2011-11-15 13:30:55 +0000 |
---|---|---|
committer | Carl Hetherington <carl@carlh.net> | 2011-11-15 13:30:55 +0000 |
commit | e827bb2bff271f99abd3531ddd0e5a01c8ac5014 (patch) | |
tree | b70e8d11ca3f72fc6347484a33f64df5059fbe26 | |
parent | f7106a20bef9ac486a1834cad4d5c825cb95558a (diff) |
Repair thinko in previous commit.
git-svn-id: svn://localhost/ardour2/branches/3.0@10612 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r-- | gtk2_ardour/editor.cc | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/gtk2_ardour/editor.cc b/gtk2_ardour/editor.cc index 0fb9006716..e022ad67b5 100644 --- a/gtk2_ardour/editor.cc +++ b/gtk2_ardour/editor.cc @@ -4696,15 +4696,16 @@ Editor::show_rhythm_ferret () void Editor::first_idle () { + MessageDialog* dialog = 0; + if (track_views.size() > 1) { - MessageDialog* dialog = manage ( - new MessageDialog (*this, - string_compose (_("Please wait while %1 loads visual data."), PROGRAM_NAME), - true) + dialog = new MessageDialog ( + *this, + string_compose (_("Please wait while %1 loads visual data."), PROGRAM_NAME), + true ); dialog->present (); ARDOUR_UI::instance()->flush_pending (); - delete dialog; } for (TrackViewList::iterator t = track_views.begin(); t != track_views.end(); ++t) { @@ -4714,6 +4715,7 @@ Editor::first_idle () // first idle adds route children (automation tracks), so we need to redisplay here _routes->redisplay (); + delete dialog; _have_idled = true; } |