OSC: Changed gainVCA to gainfader as VCA is already used.
[ardour.git] / gtk2_ardour / export_dialog.cc
index acf34dcbbe76ccbc90879ce85f196dbd7b7fd554..7c2e509a96a9e65040045bea239cf5aeba5bd9ce 100644 (file)
@@ -28,6 +28,7 @@
 #include "ardour/export_handler.h"
 
 #include "export_dialog.h"
+#include "export_report.h"
 #include "gui_thread.h"
 #include "nag.h"
 
@@ -299,6 +300,8 @@ ExportDialog::do_export ()
 void
 ExportDialog::show_progress ()
 {
+       export_notebook.set_sensitive (false);
+
        cancel_button->set_label (_("Stop Export"));
        export_button->set_sensitive (false);
 
@@ -318,7 +321,16 @@ ExportDialog::show_progress ()
                }
        }
 
+       status->finish ();
+
+       if (!status->aborted() && status->result_map.size() > 0) {
+               hide();
+               ExportReport er (_session, status);
+               er.run();
+       }
+
        if (!status->aborted()) {
+               hide();
 
                NagScreen* ns = NagScreen::maybe_nag (_("export"));
 
@@ -329,8 +341,7 @@ ExportDialog::show_progress ()
        } else {
                notify_errors ();
        }
-
-       status->finish ();
+       export_notebook.set_sensitive (true);
 }
 
 gint