aboutsummaryrefslogtreecommitdiff
path: root/confui/ui_automation.cpp
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2022-12-09 16:08:31 +0100
committerlonkaars <loek@pipeframe.xyz>2022-12-09 16:08:31 +0100
commit2eadbbd85105ad1199c43c72f551ddd69538e994 (patch)
tree333527c3edc00c1c4739e21d17030eaaa35b3fc8 /confui/ui_automation.cpp
parent1d1799da8880b19aac0dbd2975facf97138bab61 (diff)
handle deleted nodes/automations properly
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);
+}