aboutsummaryrefslogtreecommitdiff
path: root/confui/ui_automation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'confui/ui_automation.cpp')
-rw-r--r--confui/ui_automation.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/confui/ui_automation.cpp b/confui/ui_automation.cpp
index 72e2446..1c5c1f0 100644
--- a/confui/ui_automation.cpp
+++ b/confui/ui_automation.cpp
@@ -18,6 +18,8 @@ CDAutomationWidget::CDAutomationWidget(QWidget* parent) : QWidget(parent) {
main_layout->addStretch();
main_layout->addWidget(button_remove);
+ connect(button_remove, &QPushButton::clicked, this, &CDAutomationWidget::remove);
+
update();
setLayout(main_layout);
}
@@ -68,3 +70,7 @@ void CDAutomationWidget::apply() {
g_cd_mesh_connector->update_link(_id, _automation);
}
+
+void CDAutomationWidget::remove() {
+ g_cd_mesh_connector->remove_link(_id);
+}