diff --git a/src/apps/deskflow-gui/dialogs/ActionDialog.cpp b/src/apps/deskflow-gui/dialogs/ActionDialog.cpp
index e4e45d389b..32aa2dd913 100644
--- a/src/apps/deskflow-gui/dialogs/ActionDialog.cpp
+++ b/src/apps/deskflow-gui/dialogs/ActionDialog.cpp
@@ -36,6 +36,8 @@ ActionDialog::ActionDialog(QWidget *parent, const ServerConfig &config, Hotkey &
{
ui->setupUi(this);
connect(ui->keySequenceWidget, &KeySequenceWidget::keySequenceChanged, this, &ActionDialog::keySequenceChanged);
+ connect(ui->buttonBox, &QDialogButtonBox::accepted, this, &ActionDialog::accept);
+ connect(ui->buttonBox, &QDialogButtonBox::rejected, this, &ActionDialog::reject);
// work around Qt Designer's lack of a QButtonGroup; we need it to get
// at the button id of the checked radio button
diff --git a/src/apps/deskflow-gui/dialogs/ActionDialog.ui b/src/apps/deskflow-gui/dialogs/ActionDialog.ui
index d4141585c6..c675b0c7df 100644
--- a/src/apps/deskflow-gui/dialogs/ActionDialog.ui
+++ b/src/apps/deskflow-gui/dialogs/ActionDialog.ui
@@ -310,38 +310,6 @@
-
- buttonBox
- accepted()
- ActionDialog
- accept()
-
-
- 245
- 474
-
-
- 157
- 274
-
-
-
-
- buttonBox
- rejected()
- ActionDialog
- reject()
-
-
- 313
- 474
-
-
- 286
- 274
-
-
-
m_pGroupType
toggled(bool)