diff options
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. */ |