switch (_session->record_status()) {
case Session::Disabled:
if (_session->ntracks() == 0) {
- MessageDialog msg (*editor, _("Please create 1 or more track\nbefore trying to record.\nCheck the Session menu."));
+ MessageDialog msg (*editor, _("Please create one or more tracks before trying to record.\nYou can do this with the \"Add Track or Bus\" option in the Session menu."));
msg.run ();
return;
}
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) {
// first idle adds route children (automation tracks), so we need to redisplay here
_routes->redisplay ();
- delete dialog;
-
_have_idled = true;
}