summaryrefslogtreecommitdiff
path: root/gtk2_ardour/export_dialog.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2007-12-23 18:32:51 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2007-12-23 18:32:51 +0000
commit2fca66be816ceeddb9b0278230eefa7372659290 (patch)
tree59cc98f4c777426a214bfce3fa32ad4f4daf1648 /gtk2_ardour/export_dialog.cc
parent258733c4f17fc2e51d242759c8d3f089ab57a76b (diff)
prevent export from occuring when disconnected from JACK (GUI andbackend)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@2811 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour/export_dialog.cc')
-rw-r--r--gtk2_ardour/export_dialog.cc15
1 files changed, 13 insertions, 2 deletions
diff --git a/gtk2_ardour/export_dialog.cc b/gtk2_ardour/export_dialog.cc
index 20a44c8856..8c22e1b561 100644
--- a/gtk2_ardour/export_dialog.cc
+++ b/gtk2_ardour/export_dialog.cc
@@ -24,7 +24,6 @@
#include <fstream>
#include <samplerate.h>
-
#include <pbd/convert.h>
#include <pbd/xml++.h>
@@ -936,7 +935,19 @@ void
ExportDialog::do_export ()
{
string filepath = file_entry.get_text();
-
+
+ if (!ARDOUR_UI::instance()->the_engine().connected()) {
+ MessageDialog msg (*this,
+ _("Not connected to audioengine"),
+ true,
+ MESSAGE_ERROR,
+ BUTTONS_OK);
+ msg.set_secondary_text (_("Ardour cannot export audio when disconnected"));
+ msg.present ();
+ msg.run ();
+ return;
+ }
+
if(!is_filepath_valid(filepath)){
return;
}