mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 13:45:43 +01:00
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:
parent
258733c4f1
commit
2fca66be81
4 changed files with 22 additions and 8 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue