From fcb879db773a8273171027f045f8d33d900d339d Mon Sep 17 00:00:00 2001 From: lm Date: Sat, 16 Jul 2011 20:03:24 +0200 Subject: [PATCH] Fixed initialization bug for joystick, thanks to bluescreen10 on GitHub for pointing this out --- src/ui/MainWindow.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/ui/MainWindow.cc b/src/ui/MainWindow.cc index 8eceb5c72..44ec2b9da 100644 --- a/src/ui/MainWindow.cc +++ b/src/ui/MainWindow.cc @@ -135,9 +135,8 @@ MainWindow::MainWindow(QWidget *parent): connect(LinkManager::instance(), SIGNAL(newLink(LinkInterface*)), this, SLOT(addLink(LinkInterface*))); // Connect user interface devices - if (!joystick) { - joystick = new JoystickInput(); - } + joystickWidget = 0; + joystick = new JoystickInput(); // Enable and update view presentView(); -- 2.22.0