X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=gtk2_ardour%2Fexport_dialog.cc;h=59985a04590eecf29202fc02cd1794b00fa3c770;hb=cf52d6e4b40111eb04b244ec054055a4ec15dbe0;hp=006e8f5ba5cd25403383c2161d3e259d7dbaa1ad;hpb=4d67739c72031d0998f0e5f6e9cc6a6eed3de712;p=ardour.git diff --git a/gtk2_ardour/export_dialog.cc b/gtk2_ardour/export_dialog.cc index 006e8f5ba5..59985a0459 100644 --- a/gtk2_ardour/export_dialog.cc +++ b/gtk2_ardour/export_dialog.cc @@ -26,13 +26,14 @@ #include "ardour/audioregion.h" #include "ardour/export_status.h" #include "ardour/export_handler.h" +#include "ardour/profile.h" #include "export_dialog.h" #include "export_report.h" #include "gui_thread.h" #include "nag.h" -#include "i18n.h" +#include "pbd/i18n.h" using namespace ARDOUR; using namespace PBD; @@ -300,6 +301,8 @@ ExportDialog::do_export () void ExportDialog::show_progress () { + export_notebook.set_sensitive (false); + cancel_button->set_label (_("Stop Export")); export_button->set_sensitive (false); @@ -323,22 +326,23 @@ ExportDialog::show_progress () if (!status->aborted() && status->result_map.size() > 0) { hide(); - ExportReport er (status); + ExportReport er (_session, status); er.run(); } if (!status->aborted()) { hide(); - - NagScreen* ns = NagScreen::maybe_nag (_("export")); - - if (ns) { - ns->nag (); - delete ns; + if (!ARDOUR::Profile->get_mixbus()) { + NagScreen* ns = NagScreen::maybe_nag (_("export")); + if (ns) { + ns->nag (); + delete ns; + } } } else { notify_errors (); } + export_notebook.set_sensitive (true); } gint