summaryrefslogtreecommitdiff
path: root/gtk2_ardour/processor_box.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2018-11-28 00:01:50 +0100
committerRobin Gareus <robin@gareus.org>2018-11-28 00:01:50 +0100
commitf150f6c074e09e99531f8e82c5972fa49e302374 (patch)
treed78c5dfd2a63826b8ef274ec6336699f552bcdf8 /gtk2_ardour/processor_box.cc
parent415721fa5b48f3c3dc164ac60095c095c4e48ad0 (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/processor_box.cc')
-rw-r--r--gtk2_ardour/processor_box.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/gtk2_ardour/processor_box.cc b/gtk2_ardour/processor_box.cc
index 550bdc2826..2658f57538 100644
--- a/gtk2_ardour/processor_box.cc
+++ b/gtk2_ardour/processor_box.cc
@@ -3720,9 +3720,7 @@ ProcessorBox::get_editor_window (boost::shared_ptr<Processor> processor, bool us
} else if ((port_insert = boost::dynamic_pointer_cast<PortInsert> (processor)) != 0) {
- if (!_session->engine().connected()) {
- MessageDialog msg ( _("Not connected to audio engine - no I/O changes are possible"));
- msg.run ();
+ if (ARDOUR_UI_UTILS::no_engine_notify ()) {
return 0;
}