Tidy a couple of minor things up.

git-svn-id: svn://localhost/ardour2/branches/3.0@10607 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-11-15 02:06:09 +00:00
parent c56e8c2b20
commit b426e7d5e4
2 changed files with 7 additions and 10 deletions

View file

@ -4696,16 +4696,15 @@ Editor::show_rhythm_ferret ()
void
Editor::first_idle ()
{
MessageDialog* dialog = 0;
if (track_views.size() > 1) {
dialog = new MessageDialog (*this,
string_compose (_("Please wait while %1 loads visual data"), PROGRAM_NAME),
true,
Gtk::MESSAGE_INFO,
Gtk::BUTTONS_NONE);
MessageDialog* dialog = manage (
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) {
@ -4715,8 +4714,6 @@ Editor::first_idle ()
// first idle adds route children (automation tracks), so we need to redisplay here
_routes->redisplay ();
delete dialog;
_have_idled = true;
}