summaryrefslogtreecommitdiffhomepage
path: root/proto-vjoystick/vjoystick_dialog.cpp
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2019-02-11 22:12:47 +0100
committerStanislaw Halik <sthalik@misaki.pl>2019-02-11 22:12:47 +0100
commitc0da74ccd25837186ebb48af5e21ec250d2a6bdf (patch)
tree1f4fc234e75784910c03e2f237a896046ee5eec4 /proto-vjoystick/vjoystick_dialog.cpp
parent85fc6ac25d350950be56ba47b06c247216f2e22a (diff)
proto/vjoystick: fix threading issue
Acquiring given joystick id must be done on the same thread as the feeder apparently. Provide diagnostics on failure. Issue: #860
Diffstat (limited to 'proto-vjoystick/vjoystick_dialog.cpp')
-rw-r--r--proto-vjoystick/vjoystick_dialog.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/proto-vjoystick/vjoystick_dialog.cpp b/proto-vjoystick/vjoystick_dialog.cpp
index 0a1fa9b0..382d8fb3 100644
--- a/proto-vjoystick/vjoystick_dialog.cpp
+++ b/proto-vjoystick/vjoystick_dialog.cpp
@@ -7,4 +7,5 @@ vjoystick_dialog::vjoystick_dialog()
{
ui.setupUi(this);
connect(ui.buttonBox, &QDialogButtonBox::accepted, this, &QWidget::close);
+ connect(ui.buttonBox, &QDialogButtonBox::rejected, this, &QWidget::close);
}