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
This commit is contained in:
Paul Davis 2007-12-23 18:32:51 +00:00
parent 258733c4f1
commit 2fca66be81
4 changed files with 22 additions and 8 deletions

View file

@ -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;
}