13
0

Repair thinko in previous commit.

git-svn-id: svn://localhost/ardour2/branches/3.0@10612 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-11-15 13:30:55 +00:00
parent f7106a20be
commit e827bb2bff

View File

@ -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;
}