Commit fcb879db authored by lm's avatar lm

Fixed initialization bug for joystick, thanks to bluescreen10 on GitHub for pointing this out

parent f0622847
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment