summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/NodeMenu.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/gui/NodeMenu.cpp')
-rw-r--r--src/libs/gui/NodeMenu.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libs/gui/NodeMenu.cpp b/src/libs/gui/NodeMenu.cpp
index cbb4c0df..6051ec7c 100644
--- a/src/libs/gui/NodeMenu.cpp
+++ b/src/libs/gui/NodeMenu.cpp
@@ -125,6 +125,13 @@ NodeMenu::on_menu_learn()
App::instance().engine()->midi_learn(_object->path());
}
+
+void
+NodeMenu::on_menu_disconnect()
+{
+ App::instance().engine()->disconnect_all(_object->parent()->path(), _object->path());
+}
+
bool
NodeMenu::has_control_inputs()