diff options
author | Robin Gareus <robin@gareus.org> | 2018-11-27 13:18:39 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-11-27 13:18:39 +0100 |
commit | 57d7b5de65b399fc7d1d61a3a9212c0fa7f1e95c (patch) | |
tree | 2463fb1a9215537b7be319dcca385150533304d9 /gtk2_ardour/editor_drag.cc | |
parent | 5531a440c990391241292a864f9c71d3b7625c45 (diff) |
GUI limitation: Require engine to add/remove tracks/busses
Diffstat (limited to 'gtk2_ardour/editor_drag.cc')
-rw-r--r-- | gtk2_ardour/editor_drag.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 654cca2a16..5310eeed33 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -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. */ |