GUI limitation: Require engine to add/remove tracks/busses

This commit is contained in:
Robin Gareus 2018-11-27 13:18:39 +01:00
parent 5531a440c9
commit 57d7b5de65
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
4 changed files with 32 additions and 0 deletions

View file

@ -1428,6 +1428,11 @@ RegionMoveDrag::finished (GdkEvent* ev, bool movement_occurred)
RouteTimeAxisView*
RegionMoveDrag::create_destination_time_axis (boost::shared_ptr<Region> region, TimeAxisView* original)
{
if (!AudioEngine::instance()->running ()) {
error << _("Not connected to audio engine - Could not create new track after region placed in the drop zone") << endmsg;
return NULL;
}
/* Add a new track of the correct type, and return the RouteTimeAxisView that is created to display the
new track.
*/