diff options
author | Robin Gareus <robin@gareus.org> | 2018-11-28 00:01:50 +0100 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2018-11-28 00:01:50 +0100 |
commit | f150f6c074e09e99531f8e82c5972fa49e302374 (patch) | |
tree | d78c5dfd2a63826b8ef274ec6336699f552bcdf8 /gtk2_ardour/editor_ops.cc | |
parent | 415721fa5b48f3c3dc164ac60095c095c4e48ad0 (diff) |
Use central method to check for engine where required
These are generally places where tracks/busses are created or port
connections change.
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r-- | gtk2_ardour/editor_ops.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc index 3675a02fc5..e73ea5fab0 100644 --- a/gtk2_ardour/editor_ops.cc +++ b/gtk2_ardour/editor_ops.cc @@ -45,7 +45,6 @@ #include "widgets/prompter.h" #include "ardour/audio_track.h" -#include "ardour/audioengine.h" #include "ardour/audioregion.h" #include "ardour/boost_debug.h" #include "ardour/dB.h" @@ -111,6 +110,7 @@ #include "transpose_dialog.h" #include "transform_dialog.h" #include "ui_config.h" +#include "utils.h" #include "vca_time_axis.h" #include "pbd/i18n.h" @@ -7421,9 +7421,7 @@ Editor::_remove_tracks () return; } - if (!AudioEngine::instance()->running ()) { - MessageDialog msg (_("Not connected to audio engine - Removing Tracks/Busses is not possible")); - msg.run (); + if (ARDOUR_UI_UTILS::no_engine_notify ()) { return; } |