summaryrefslogtreecommitdiff
path: root/gtk2_ardour/editor_ops.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-11-27 13:18:39 +0100
committerRobin Gareus <robin@gareus.org>2018-11-27 13:18:39 +0100
commit57d7b5de65b399fc7d1d61a3a9212c0fa7f1e95c (patch)
tree2463fb1a9215537b7be319dcca385150533304d9 /gtk2_ardour/editor_ops.cc
parent5531a440c990391241292a864f9c71d3b7625c45 (diff)
GUI limitation: Require engine to add/remove tracks/busses
Diffstat (limited to 'gtk2_ardour/editor_ops.cc')
-rw-r--r--gtk2_ardour/editor_ops.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gtk2_ardour/editor_ops.cc b/gtk2_ardour/editor_ops.cc
index 50ead21c33..3675a02fc5 100644
--- a/gtk2_ardour/editor_ops.cc
+++ b/gtk2_ardour/editor_ops.cc
@@ -45,6 +45,7 @@
#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"
@@ -7420,6 +7421,12 @@ Editor::_remove_tracks ()
return;
}
+ if (!AudioEngine::instance()->running ()) {
+ MessageDialog msg (_("Not connected to audio engine - Removing Tracks/Busses is not possible"));
+ msg.run ();
+ return;
+ }
+
vector<string> choices;
string prompt;
int ntracks = 0;